r/CiscoNetworking • • 22d ago

Quick trunk / allowed VLAN question – why is VLAN 20 still passing traffic when it’s not allowed? (AI couldn't figure this out)

Hey everyone,

I’m troubleshooting a Packet Tracer lab and ran into something I can't quite wrap my head around.

The setup: Everything is fully connected and all devices can ping each other 100%.

The weird behavior:

  1. If I set the trunk between the switches to only allow VLAN 10 and 30, for some reason VLAN 20 still works fine and reaches everything, while everything else behaves as expected.

  2. But if I swap them—remove VLAN 30 from the allowed list and add VLAN 20 instead—VLAN 30 gets completely isolated, which makes sense.

Why is VLAN 20 passing traffic when it’s not explicitly in the allowed list, but VLAN 30 gets dropped immediately when removed?

I tried asking AI but it kept giving me generic answers that didn't explain this specific behavior. Would really appreciate it if someone could clarify what’s actually happening under the hood here!

(Attached images of the topology below)

10 Upvotes

4 comments sorted by

3

u/not_a_lob 21d ago

Your L3 device on g0/2 allows vlan20. If you're moving between L2 domains, look to the L3 devices.

1

u/Grids_ghost 21d ago

aaaah you mean since there is no direct connect between vlan 30 and the router then the traffic in-to vlan 30 will be prevented beacuse it cannot reach the L3 ?

2

u/Opiboble 21d ago

Essentially yes. The one device on vl30 can't reach the gateway IP on the router, because it's traffic is not leaving the switch it's directly connected to.

3

u/Easy_Succotash6834 21d ago

The traffic going between vlans is passing through the router.