[fusion_text]Configure the interfaces gig0/1 on Switch1 and Switch2 as an (802.1Q) trunk
[/fusion_text][separator style_type=”none” top_margin=”5″ bottom_margin=”” sep_color=”” border_size=”” icon=”” icon_circle=”” icon_circle_color=”” width=”” alignment=”center” class=”” id=””]
First, go to switch 1 into configuration mode
Shell
1 2 3 | Switch1#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)# |
Then open the interface Gig0/1 and enable trunk mode with the VLAN you want. (you can change the vlan number from 0 / 1005)
Shell
1 2 3 4 | Switch1(config)#interface gigabitEthernet 0/1 Switch1(config-if)#switchport mode trunk Switch1(config-if)#switchport trunk allowed vlan add 10(add the VLAN you want!) Switch1(config-if)#no shutdown |
When message:
Command rejected: An interface whose trunk encapsulation is “Auto” can not be configured to “trunk” mode.
Solution:
You have to specify the encapsulation with the follow command: “switchport encapsulation dot1q” (without quote’s!)
Verify that the port is set correctly for the trunk:
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | <strong>Switch1>show interfaces trunk </strong> <strong>Port Mode Encapsulation Status Native vlan</strong> <strong>Gig0/1 on 802.1q trunking 1 </strong> <strong>Port Vlans allowed on trunk</strong> <strong>Gig0/1 1-1005 </strong> <strong>Port Vlans allowed and active in management domain</strong> <strong>Gig0/1 1 </strong> <strong>Port Vlans in spanning tree forwarding state and not pruned</strong> <strong>Gig0/1 1</strong> <strong>Switch1> </strong> |
Then do the exact same things, written above, to switch2!