My Countingdown

Showing posts with label 802.1q Trunk. Show all posts
Showing posts with label 802.1q Trunk. Show all posts

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

Lab 3. Switching - 802.1q Trunk Ports

Objective: Configure an 802.1q trunk between SW1 and SW2


SW1:
SW1(config)#default int e0/0                        ----> to restore int e0/0 to default setting
SW1(config)#int e0/0
SW1(config-if)#switchport mode dynamic desirable
SW1(config-if)#no shu

SW2: 
SW2(config)#int e0/0
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switc mode trun
SW2(config-if)#no shut

Verify the switchport and trunk

SW1(config-if)#do sh int e0/0 switch
Name: Et0/0
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype:  0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
  
SW1(config-if)#do sh int statu | i Port|Et0/0
Port         Name               Status       Vlan       Duplex  Speed Type
Et0/0                               connected    trunk        auto   auto   10BaseTX

SW1(config-if)#do sh int e0/0 switch        
Name: Et0/0
Switchport: Enabled
Administrative Mode: dynamic desirable
Operational Mode: trunk
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: dot1q
Operational Dot1q Ethertype:  0x8100
Negotiation of Trunking: On
Access Mode VLAN: 1 (default)
Trunking Native Mode VLAN: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
 ...

SW1(config-if)#do sh int trunk              
Port                Mode         Encapsulation  Status        Native vlan
Et0/0               desirable    n-802.1q       trunking      1

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(config-if)#do sh int status | i Port|Et0/0
Port         Name               Status          Vlan       Duplex  Speed Type
Et0/0                                connected    trunk        auto   auto  10BaseTX

SW2(config-if)#do 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: 1 (default)
Administrative Native VLAN tagging: enabled
Operational Native VLAN tagging: disabled
...
  
SW2(config-if)#do sh int trun
Port                Mode         Encapsulation  Status        Native vlan
Et0/0               on              802.1q            trunking        1

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