Router-On-A-Stick
• Configure the link between SW2 and R6 as an 802.1q trunk link.
• Using the subinterfaces listed in the diagram configure R6 to route traffic for both VLANs 67 and 146 on its Ethernet link.
SW2(config)#int Fa 0/6 SW2(config-if)#switchport trunk encapsulation dot1q SW2(config-if)#switchport mode trunk SW2(config-if)#end
R6(config)#int Fa 1/0.67 R6(config-subif)#encapsulation dot1Q 67 R6(config-subif)#ip address 155.1.67.6 255.255.255.0 R6(config-subif)#exit R6(config)#int Fa 1/0.146 R6(config-subif)#encapsulation dot1Q 146 R6(config-subif)#ip address 155.1.146.6 255.255.255.0 R6(config-subif)#exit R6(config)#end
• Verify that R6 has reachability to devices both on VLAN 67 and 146.
SW2#sh int fa0/6 trunk Port Mode Encapsulation Status Native vlan Fa0/6 on 802.1q trunking 1 Port Vlans allowed on trunk Fa0/6 1-4094 Port Vlans allowed and active in management domain Fa0/6 1,5,7-10,22,43,58,67,69,79,146 Port Vlans in spanning tree forwarding state and not pruned Fa0/6 1,5,7-10,22,43,58,67,69,79,146
R6#ping 155.1.67.7 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 155.1.67.7, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms R6#ping 155.1.146.4 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 155.1.146.4, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
Categories: IT, Networking, Routing, Switching