I'm currently working on the 802.1Q Native VLAN lab (http://labs.ine.com/workbook/view/rs-v5-workbook/task/802-1q-native-vlan-MTk4Mg%3D%3D ) and seeing behavior I don't understand. Specifically, I do not see STP blocking ports on native VLAN mismatch and my ports are flapping.
I have 4 WS-C3560-24TS switches running 15.0(2)SE C3560-IPSERVICESK9-M. The output of the verification steps for my switches is as follows.
SW1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/19 desirable 802.1q trunking 146
Fa0/20 desirable 802.1q trunking 146
Fa0/21 desirable 802.1q trunking 146
Fa0/22 desirable 802.1q trunking 146
Fa0/23 desirable 802.1q trunking 146
Fa0/24 desirable 802.1q trunking 146
Port Vlans allowed on trunk
Fa0/19 1-4094
Fa0/20 1-4094
Fa0/21 1-4094
Fa0/22 1-4094
Fa0/23 1-4094
Fa0/24 1-4094
Port Vlans allowed and active in management domain
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
Fa0/23 1
Fa0/24 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
Fa0/23 1
Fa0/24 1
SW2#show int tru
Port Mode Encapsulation Status Native vlan
Fa0/23 auto n-802.1q trunking 146
Fa0/24 auto n-802.1q trunking 146
Port Vlans allowed on trunk
Fa0/23 1-4094
Fa0/24 1-4094
Port Vlans allowed and active in management domain
Fa0/23 1
Fa0/24 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/23 1
Fa0/24 none
SW3#show int tru
Port Mode Encapsulation Status Native vlan
Fa0/19 auto n-802.1q trunking 146
Fa0/20 auto n-802.1q trunking 146
Port Vlans allowed on trunk
Fa0/19 1-4094
Fa0/20 1-4094
Port Vlans allowed and active in management domain
Fa0/19 1
Fa0/20 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/19 1
Fa0/20 none
SW4#show int tru
Port Mode Encapsulation Status Native vlan
Fa0/21 auto n-802.1q trunking 146
Fa0/22 auto n-802.1q trunking 146
Port Vlans allowed on trunk
Fa0/21 1-4094
Fa0/22 1-4094
Port Vlans allowed and active in management domain
Fa0/21 1
Fa0/22 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/21 1
Fa0/22 none
When I change the default vlan on SW1 FA0/23 and FA0/24, I get CDP messages indicating native VLAN mismatch, but I do not see messages indicating that STP is blocking for that reason. Show spanning-tree inconsistent ports also shows nothing. However, on SW1 ports FA0/23 and FA0/24 no longer appear as forwarding and not pruned in the show interface trunk output.
SW1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/19 desirable 802.1q trunking 146
Fa0/20 desirable 802.1q trunking 146
Fa0/21 desirable 802.1q trunking 146
Fa0/22 desirable 802.1q trunking 146
Fa0/23 desirable 802.1q trunking 1
Fa0/24 desirable 802.1q trunking 1
Port Vlans allowed on trunk
Fa0/19 1-4094
Fa0/20 1-4094
Fa0/21 1-4094
Fa0/22 1-4094
Fa0/23 1-4094
Fa0/24 1-4094
Port Vlans allowed and active in management domain
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
Fa0/23 1
Fa0/24 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
Fa0/23 none
Fa0/24 none
SW1#show ip int bri | inc 23|24
FastEthernet0/23 unassigned YES unset up up
FastEthernet0/24 unassigned YES unset up up
SW1#show sp
SW1#show spanning-tree vlan 1
VLAN0001
Spanning tree enabled protocol ieee
Root ID Priority 32769
Address 001b.d5df.f480
This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1)
Address 001b.d5df.f480
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Interface Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Fa0/1 Desg FWD 19 128.3 P2p
Fa0/19 Desg FWD 19 128.21 P2p
Fa0/20 Desg FWD 19 128.22 P2p
Fa0/21 Desg FWD 19 128.23 P2p
Fa0/22 Desg FWD 19 128.24 P2p
Fa0/23 Desg FWD 19 128.25 P2p
Fa0/24 Desg FWD 19 128.26 P2p
SW1#show spanning-tree vlan 1 int fa0
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/23 (1), with SW2 FastEthernet0/23 (146).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with SW2 FastEthernet0/24 (146).
SW1#show spanning-tree vlan 1 int fa0/23
Vlan Role Sts Cost Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
VLAN0001 Desg FWD 19 128.25 P2p
SW1#show spanning-tree inconsistentports
Name Interface Inconsistency
-------------------- ------------------------ ------------------
Number of inconsistent ports (segments) in the system : 0
Later, the ports on SW1 start to flap.
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/23 (1), with SW2 FastEthernet0/23 (146).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with SW2 FastEthernet0/24 (146).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/23 (1), with SW2 FastEthernet0/23 (146).
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with SW2 FastEthernet0/24 (146).
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/22, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/21, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/19, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/22, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/21, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/19, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/20, changed state to up
SW1#show int trunk
Port Mode Encapsulation Status Native vlan
Fa0/19 desirable 802.1q trunking 146
Fa0/20 desirable 802.1q trunking 146
Fa0/21 desirable 802.1q trunking 146
Fa0/22 desirable 802.1q trunking 146
Port Vlans allowed on trunk
Fa0/19 1-4094
Fa0/20 1-4094
Fa0/21 1-4094
Fa0/22 1-4094
Port Vlans allowed and active in management domain
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
Port Vlans in spanning tree forwarding state and not pruned
Fa0/19 1
Fa0/20 1
Fa0/21 1
Fa0/22 1
I appreciate any insight you can offer.