VLAN mismatch diagnosis
Start from a precise symptom
In our fictional lab, A and C in VLAN 10 can exchange frames. B and D in VLAN 20 cannot communicate across switches, but all four access links and the trunk are physically up. This narrows the investigation to a VLAN-specific problem; it does not yet prove the cause. The intended policy allows both data VLANs on the inter-switch link and keeps them separate.
A -- p1 [S1] t1 ===== t1 [S2] p1 -- CB -- p2 [S1] [S2] p2 -- DA,C: VLAN 10 B,D: VLAN 20Read both ends
The following is a synthetic summary, not actual command output. Both switches have active VLANs 10, 20 and 99; assume no loop, no spanning-tree block and matching access membership. S2 omits VLAN 20 in its trunk list. The expected effect is failure of cross-switch VLAN 20 traffic while VLAN 10 still works. A native VLAN mismatch would be a different fault: untagged data could be classified into the wrong VLAN, or a protection mechanism might block forwarding. Do not assume a particular protection response across platforms.
S1 t1: allowed 10,20,99; native 99S2 t1: allowed 10,99; native 99VLAN 10: tagged, admitted at both endsVLAN 20: tagged, excluded at S2Choose inspection commands
For a Cisco Catalyst lab with IOS XE 17 and the named interface, these privileged EXEC commands are documented inspection examples. They respectively show VLAN membership, trunk details, switchport settings and learned MAC addresses for VLAN 20. Read them on paper here; output varies by release and device. An allowed list alone is not proof of forwarding: verify VLAN existence, access membership, actual trunk mode and active forwarding state. A learned MAC entry is evidence of a source seen earlier, not proof of current bidirectional application health.
show vlan briefshow interfaces trunkshow interfaces gigabitethernet 1/0/24 switchportshow mac address-table vlan 20Minimal correction and proof
In the paper model, propose adding VLAN 20 to S2’s approved list, preserving 10 and 99. A real change requires authorization, saved configuration, console access and rollback. Verify that B reaches D and D reaches B within VLAN 20, A still reaches C within VLAN 10, and broadcasts from each group do not reach the other. Check MAC learning per VLAN and confirm the management path is unchanged. For example, with B and D in VLAN 20, S1 should learn B on p2 and D on t1 after bidirectional traffic. If intended tests regress, restore the previous approved list and review the evidence. No live changes are performed here.
Practice a different failure
Now assume both trunks allow VLAN 20 and forward it, but D is incorrectly assigned to VLAN 10. Changing the trunk list will not fix this access membership fault. Compare the intended port map with the actual assignment, propose the smallest authorized correction, then repeat positive and negative checks. The next chapter introduces the Layer 3 path for intentional inter-VLAN communication.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
VLAN mismatch diagnosis — knowledge check
Reason about VLAN membership, forwarding and diagnostic evidence.
Which specific discrepancy is shown in the synthetic trunk summaries?
What is the smallest proposed correction in the paper model?
Which evidence checks that intended isolation still holds?
What if D is assigned to VLAN 10 by mistake while the trunks are correct?
Which inspection shows learned MAC entries for VLAN 20 in the documented Cisco example?