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!
Solved! Go to Solution.
Thanks Edison .
Should we need to configure vlan 2 on sw2 so that sw2 can route packets to vlan 2?
Is it something usualy done in such situation 1.e create a vlan on multilayer switch so that it can route traffic to that vlan?
thanks and have a nice weekend!
Thanks Edison. I can recall now for a multilayer switch to route traffic between two vlans, say vlan 1 and vlan 2, two interface interface vlan 1 and interfacve vlan 2 are created. We can not create interface vlan 2 without creating the vlan 2 first.
Thanks Edison and you have a good weekend !