02 lab Intel-VLAN Router on Stick
02 lab Intel-VLAN Router on Stick
Topology
Steps:
1. Set host name on the switch to "SW“
Switch>
Switch>en
Switch#conf t
Switch(config)#host SW
SW(config)#
2. Create VLNA 10 and name it “Sales”
SW(config)#vlan 10
SW(config-vlan)#name Sales
SW(config-vlan)#
SW(config)#vlan 20
SW(config-vlan)#name IT
SW(config-vlan)#
SW(config)#vlan 30
SW(config-vlan)#name ENG
SW(config-vlan)#
5. Assign Ports G0/1 and G0/2 to be access ports and belonging to VLAN 10
SW(config-if-range)#
SW(config-if-range)#int g0/3
SW(config-if)#
SW(config-if)#int g1/0
SW(config-if)#
SW(config)#int g0/0
SW(config-if)#
9. Save configuration
SW(config-if)#exit
SW(config)#exit
Building configuration...
SW#
10. On Router, execute the following command to enable its G0/0 interface.
Router#
Router#conf t
Router(config)#int g0/0
Router(config-if)#no ip add
Router(config-if)#no shut
Router(config-if)#exit
11. On Router, execute the following commands to enable the dot1q encapsulation protocol (along with the VLAN
ID) and to configure 192.168.10.1/24 IP address on its G0/ 0.10 virtual sub-interface.
Router(config-if)#int g0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#
12. On Router, execute the following commands to enable the dot1q encapsulation protocol (along with the VLAN
ID) and to configure 192.168.20.1/24 IP address on its G0/ 0.20 virtual sub-interface.
Router(config-subif)#int g0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#
13. On Router, execute the following commands to enable the dot1q encapsulation protocol (along with the VLAN
ID) and to configure 192.168.20.1/24 IP address on its G0/ 0.20 virtual sub-interface.
Router(config-subif)#int g0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#
Router(config-subif)#exit
Router(config)#exit
Router#copy r s
SW#sh vlan
20 IT active Gi0/3
30 ENG active Gi1/0
1002 fddi-default act/unsup
One PC1
Ping PC2
Ping 192.168.10.20
Ping PC3
Ping 192.168.20.10
Ping PC4
Ping 192.168.30.10