TRUNKING

TRUNKING


To configure a trunk link on interface

Syntax:

Switch(config)#interface <type> <No.> 

Switch(config-if)#switchport mode trunk 
Switch(config-if)#switchport trunk allowed vlan <all | No.>


ON SWITCH1

Step1:
Create the VLAN onSwitch1

Step2:

To configure Trunking
Switch1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch1(config)#
Switch1(config)#interface fastEthernet 0/24
Switch1(config-if)#switchport mode trunk 
Switch1(config-if)#switchport trunk allowed vlan all
Switch1(config-if)#exit
Switch1(config)#

Verify the output by the following command:

Switch1#show interface trunk

ON SWITCH2

Step1:
Create the VLAN onSwitch2

Step2:

To configure Trunking
Switch1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch1(config)#
Switch1(config)#interface fastEthernet 0/24
Switch1(config-if)#switchport mode trunk 
Switch1(config-if)#switchport trunk allowed vlan all
Switch1(config-if)#exit
Switch1(config)#



Verify the output by the following command:

Switch1#show interface trunk

Port              Mode          Encapsulation        Status       Native       vlan

Fa0/24          on              802.1q                  trunking     1


Port              Vlans allowed on trunk

Fa0/24          1-1005


Port              Vlans allowed and active in management domain

Fa0/24          1,10,20


Port             Vlans in spanning tree forwarding state and not pruned


Fa0/24         1,10,20



No comments:

Post a Comment