Hello Friends...Today i wanna share with you Networking skills to Configure Router on Stick.
For host in different vlans to communicate, a layer 3 device must be implemented to route between
the vlans. In our case we will have a router connected to a switch via a fast ethernet port which will
be configured in trunking mode.
Lets say that VLAN2 and VLAN3 (the broadcast domains) exist on the switch, and the router's Fa0/0 is connected to switchport Fa0/1.
Enj. Guys...:-)
For host in different vlans to communicate, a layer 3 device must be implemented to route between
the vlans. In our case we will have a router connected to a switch via a fast ethernet port which will
be configured in trunking mode.
Lets say that VLAN2 and VLAN3 (the broadcast domains) exist on the switch, and the router's Fa0/0 is connected to switchport Fa0/1.
The switch trunks to the router on that port, sending the traffic for both VLANs, tagged via the trunking protocol.
On the router side, the IOS creates 2 sub interfaces, (fa0/0.100 and fa0/0.200 as an example) with 1 of them paying attention to frames tagged for vlan 2, and the other sub interface paying attention to the tags for vlan 3. Each sub interface has one IP address, that matches the other devices that may live in that same vlan (2 or 3). The devices in each point to the IP address of the router (in their vlan) as a default gateway.
Router example, for fa0/0
interface FastEthernet0/0.100
encapsulation dot1q 2
ip address 10.20.11.1 255.255.255.0
interface FastEthernet0/0.200
encapsulation dot1q 3
ip address 10.30.11.1 255.255.255.0
Switch connected to that router port example:
3560(config)#int FastEthernet 0/1
3560(config-if)#switchport trunk encapsulation dot1q
3560(config-if)#switchport mode trunk
The term, router on a stick, refers to the physical layout, of the Router, with a single connection to the switch.
No comments:
Post a Comment