07-15-2015 06:12 PM - edited 03-08-2019 12:59 AM
what is native vlan actually ? in which cases we can use it ?
Example : switch 1 has two vlans namely vlan 1 and vlan 2, similarly switch 2 has two vlans namely vlan 1 and vlan 2. Each vlan has one host and both switches are connected with trunk link - dot1Q protocol.
Swith 1 has native vlan 1 and Switch 2 has native vlan 2.
Upon looking the topology we can tell traffic can go through trunk link but it would not deliver to appropriate host. I mean, if host from vlan 1 of switch 1 sent packet to vlan 1 host on switch 2, it would not deliver. why is it ? is that because the switches have different native number....?
what is native vlan, is it required in today's network ?
Thanks for the time !
Chirag
Solved! Go to Solution.
07-16-2015 05:59 AM
I would like to focus on this part of the question "so I can use native vlan technic in place of router". No you can not use the native vlan technique in place of router. The router is capable of forwarding between vlans. This trick is only forwarding within a vlan - and the trick is that the vlan identifier is different on the two switches. But it is still a single broadcast domain and technically it is a single vlan.
HTH
Rick
07-15-2015 06:23 PM
Hi,
The error message can be seen in multiple situations:
Regards
please rate if it helps.
07-15-2015 08:56 PM
interesting !
so I can use native vlan technic in place of router because with this trick we can send traffic to different vlans just by changing the native vlan number, am I right ?
can I say because of switch has different native vlan numbers, the frame is not delivered to appropriate vlan. is this right ? suppose, switch 2 has native vlan 1 then the frame would deliver appropriate location - vlan 1 at switch 2
OR
trunk with mismatched native vlans ?
according to your explanation I can guess the native vlan value can only be change at trunk port. Is it possible to change it from access port ?
what you have explained is really help full ! Thank you.
Chirag
07-16-2015 04:19 AM
so I can use native vlan technic in place of router because with this trick we can send traffic to different vlans just by changing the native vlan number, am I right ?
Answer:---we suggest not to do so as you will be ending up by vlan leaking.
can I say because of switch has different native vlan numbers, the frame is not delivered to appropriate vlan. is this right ? suppose, switch 2 has native vlan 1 then the frame would deliver appropriate location - vlan 1 at switch 2
Answer:-yes which ever is the native vlan the packet would be redirected. Example if the native vlan is 2 on switch one but native vlan is 1 at other end switch then the packet of vlan 2 will be sent to vlan 1 of other switch this is what called as vlan leaking.
OR
trunk with mismatched native vlans ?
according to your explanation I can guess the native vlan value can only be change at trunk port. Is it possible to change it from access port ?
No native vlan is only to be used when there is fun trunk link with 802.1d.
what you have explained is really help full ! Thank you.
07-18-2015 10:07 PM
Thank you every one for replying. It really helped me to understand better and correctly.
Thanks once again !
Chirag
07-16-2015 05:13 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Regarding the "trick" of using native VLANs to move traffic between different VLANs on between different switches, across trunks, yes, you can do similar with access ports. For those, all you need to do is have one switch use VLAN X and the other use VLAN Y and traffic will flow between them. As InayathUlla has already described for trunks, CDP may flag the VLAN mismatch across the access ports too.
07-16-2015 05:59 AM
I would like to focus on this part of the question "so I can use native vlan technic in place of router". No you can not use the native vlan technique in place of router. The router is capable of forwarding between vlans. This trick is only forwarding within a vlan - and the trick is that the vlan identifier is different on the two switches. But it is still a single broadcast domain and technically it is a single vlan.
HTH
Rick
07-16-2015 07:21 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Rick raises a good point, and if my answer implied this "trick" can take the place of a router (always), that was unintended. Actually I was only addressing doing something similar using access ports. That said, on the router question, I differ from Rick in believing this "trick" could be used in place of a router.
What the "trick" does, whether on a trunk or access ports, it joins the VLANs at L2. I.e where you had VLAN separation, you no longer do.
Basically, the "trick" is about the same as assigning all hosts into the same VLAN from the start, but assigning them into different logical networks.
Assuming your hosts were addressed such that those hosts on the different VLANs are in different networks (e.g. VLAN X 192.168.1.0/24 and VLAN Y 192.168.2.0/24), they may not have direct logical access between logical networks just because all hosts are now in one physical network (e.g. VLAN X+Y or VLAN Z, with half the hosts in 192.168.1.0/24 and half the hosts in 192.168.2.0/24).
Whether hosts, on different logical networks but on same physical network, can directly intercommunicate, without a router, depends on whether the hosts are configured to have a gateway or not. If they are configured to not use a gateway, they will ARP for any destination, and hosts on the same physical network, but even in a different logical network, should respond to the ARP.
If hosts are configured to use a gateway, they will direct their off local logical network traffic to it. The gateway will forward the traffic if it can.
In cases where you intentionally have multiple logical networks on the same physical network, hosts are usually configured to still use a gateway, but the gateway router, might have multiple addresses on the port that connects to the physical network. So, even though hosts in different logical networks are on the same physical network, traffic between those networks is routed (via gateway). (NB: the foregoing might be used for host re-IPing.)
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide