In this tutorial I’ll discuss about how to configuration vlan trunk onĀ switch cisco packet tracer. Vlan trunk can be carrier multiple vlan, use for point to point connection between two switch, switch and router, switch and server. It can be load multiple vlan connection in one time.
The following is the topologi are used :
Configure ip address for PC :
Create vlan on Switch 1 :
SW1(config)#vlan 10 SW1(config-vlan)#name ADMIN SW1(config-vlan)#exit SW1(config)#vlan 20 SW1(config-vlan)#name IT SW1(config-vlan)#exit SW1(config)#
Create vlan on Switch 2 :
SW2(config)#vlan 10 SW2(config-vlan)#name ADMIN SW2(config-vlan)#exit SW2(config)#vlan 20 SW2(config-vlan)#name IT SW2(config-vlan)#exit SW2(config)#
Assign vlan port on Switch 1 :
SW1(config)#int fa0/2 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 10 SW1(config-if)#exit SW1(config)#int fa0/3 SW1(config-if)#switchport mode access SW1(config-if)#switchport access vlan 20 SW1(config-if)#exit
Assign vlan port on Switch 2 :
SW2(config)#int fa0/2 SW2(config-if)#switchport mode access SW2(config-if)#switchport access vlan 10 SW2(config-if)#exit SW2(config)#int fa0/3 SW2(config-if)#switchport mode access SW2(config-if)#switchport access vlan 20 SW2(config-if)#exit SW2(config)#
Test connection PC0 (Network VLAN10) from Switch1 to PC3 (VLAN10) from Switch2. Connection is timeout.
Test connection PC2 (Network VLAN20) from Switch1 to PC4 (VLAN20) from Switch2. Connection is timeout.
Configure Vlan trunk between Switch1 and Switch2 so that connection vlan10 and vlan20 from switch1 and switch2 can be connected.
Configure vlan trunk Switch1 :
SW1(config)#int fa0/1 SW1(config-if)#switchport mode trunk SW1(config-if)#exit SW1(config)#
Configure vlan trunk Switch2 :
SW2(config)#int fa0/1 SW2(config-if)#switchport mode trunk SW2(config-if)#exit SW2(config)#
Now repeat connection test again :
Connection vlan10 between switch1 and switch2, vlan20 between switch1 and switch2 is successfull.