- Bronze, 100 points or more
Hi every body!
Today while discussing trunking with my friend, i came to know a new thing.
According to Cisco press book, a switch has tree reasons to prevent a particular vlan's traffic from crossing a trunk:
1) manually configured to remove vlan
2) vtp pruning
3) A vlan does not exist or is not active, in the switch's vlan database.
The third reason is mind boggling atleast for me.
Let say we have three switches.
sw1 has vlans,1,2
sw2 has vlan 1,
sw3 has vlan 1,2
All switches are connected by trunk. Based on the above reason(reason #3), sw2 will not forward vlan 2 frame to sw3.
Am i correct?
(v1,v2) (v1) (v1,v2)
Let take another example.
sw1---------------sw2(sw2 layer 3 switch)
sw1 has vlans 1,2
Sw2 has vlan 1.
To route traffic between vlan 1 and vlan2, sw2 is used.
A host in vlan 1 connected to sw1 though not shown, wants to send ip packet to host in vlan2.
sw1 forwards this frame over trunk to sw2.
What sw2 will do? Will it drop this frame bacause sw2 has no vlan2 in its database ? or sw2 will route the packet?
Here is my guess:
Since sw 2 is performing routing function, or acting as a router , it will be able to send frame to vlan 2 over trunk though no vlan 2 exists on sw2.
Thanks a lot and have a nice weekend!
In order to create an interface vlan 2 and have an IP address under it and this interface to be up/up a Layer2 representation of that Vlan must exist on the Vlan DB.
On your first example, yes - SW2 won't forward packets for Vlan 2.
On the second example, how SW2 is going to route between Vlan 1 and Vlan 2 when you said SW2 only has Vlan 1 on the Vlan Database?