My Countingdown

Tuesday, January 3, 2012

Lab 4. Switching - 802.1q Trunk Ports and the Native VLAN

Objective: Configure an 802.1q trunk between SW1 and SW2 with VLAN 20 as the native VLAN 


SW1:
SW1(config)#int e0/0
SW1(config-if)#switch trun encap dot1
SW1(config-if)#switch trun native vlan 20
SW1(config-if)#switchport mode trunk
SW1(config-if)#no shu

SW2:
SW2(config)#int e0/0
SW2(config-if)#switch trun encap dot
SW2(config-if)#switch trunk nati vla 20
SW2(config-if)#switch mode trunk
SW2(config-if)#no shu

Verify the switchport and trunk 

SW1#sh int e0/0 switch
Name: Et0/0
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype:  0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 20 (Inactive)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
...

SW1#sh int trunk
Port                Mode         Encapsulation  Status        Native vlan
Et0/0               on              802.1q            trunking      20

Port                Vlans allowed on trunk
Et0/0               1-4094

Port                Vlans allowed and active in management domain
Et0/0               1

Port                Vlans in spanning tree forwarding state and not pruned
Et0/0               1

SW2#sh int e0/0 swit
Name: Et0/0
Switchport: Enabled
Administrative Mode: trunk
Operational Mode: trunk
Administrative Trunking Encapsulation: dot1q
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype:  0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 20 (Inactive)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
...

SW2#sh int trun
Port                Mode         Encapsulation  Status        Native vlan
Et0/0               on              802.1q           trunking      20

Port                Vlans allowed on trunk
Et0/0               1-4094

Port                Vlans allowed and active in management domain
Et0/0               1

Port                Vlans in spanning tree forwarding state and not pruned
Et0/0               1

No comments:

Post a Comment