SWITCHING LABS



                          ROUTER ON A STICK INTER-VLAN ROUTING IN GNS3


                How to configure router on stick inter-vlan routing in gns3 with the help of vmware                           machines.




In this scenario XP1,XP2,XP3,XP4 are the 4 virtual machines. This 4 machines  connected to gns3 with 
virtual network in the Vmware.All the virtual network should be in host only mode.

Configuration of SW1

SW1#vlan database
SW1(vlan)#vlan 10
SW1(vlan)#vlan 20
SW1(vlan)#exit
SW1#conf terminal
SW1(config)#int fastEthernet 1/2
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 10
SW1(config-if)#exit
SW1(config)#int fastEthernet 1/3
SW1(config-if)#switchport mode access
SW1(config-if)#switchport access vlan 20
SW1(config-if)#exit
SW1(config)#int fastEthernet 1/1
SW1(config-if)#switchport mode trunk
SW1(config-if)#exit
SW1(config)#int fastEthernet 1/0
SW1(config-if)#switchport mode trunk

Configuration of SW2


SW2#vlan database
SW2(vlan)#vlan 10
SW2(vlan)#vlan 20
SW2(vlan)#exit
SW2#conf terminal
SW2(config)#int fastEthernet 1/2
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 10
SW2(config-if)#exit
SW2(config)#int fastEthernet 1/3
SW2(config-if)#switchport mode access
SW2(config-if)#switchport access vlan 20
SW2(config-if)#exit
SW2(config)#int fastEthernet 1/1
SW2(config-if)#switchport mode trunk
SW2(config-if)#exit

Configuration of R1

R1#conf terminal
R1(config)#int fastEthernet 1/0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int fastEthernet 1/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip address 192.168.10.1 255.255.255.0
R1(config-subif)#exit
R1(config)#int fastEthernet 1/0.20
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip address 192.168.20.1 255.255.255.0
R1(config-subif)#exit


                                      Please watch and subscribe the video

 
                                     























1 comment:

Unknown said...

Iam using IOS c3725-adventerprisek9-mz.124-15.T8.bin with 16ESW on gns3, I cann't figure out the command "switchport mode trunk" and "switchport mode access".

CAN YOU HELP ME OUT
My email: momokurt_ldn@yahoo.co.uk

Kind Regards
Momo