01-22-2013 02:35 PM - edited 03-07-2019 11:14 AM
I thought I saw this somewhere but can't seem to find it again...
If two switches are configured with different vlans but on the same subnet:
1) Traffic will pass between the switches untagged
2) Layer 3 communication will work because the two vlans share the same subnet
Am I correct here?
Also, what would happen if two switches on diffrent vlans but on the same subnet are connected to each other?
01-22-2013 03:38 PM
Hi
If the link between the switches is access link it will work
PC1---------SW1--------Accesslink-----------------SW2--------------PC2
Think both the ports on SW1 are in Vlan 10 and all the ports on SW2 are i nVLAN 10, and PC1 and PC2 are in same subnet, they can communicate each other
Thanks
Raju
01-23-2013 02:33 AM
There was a Typo in my previous message. Correcting that
If the link between the switches is access link it will work
PC1--------(Vlan 10)-SW1-(Vlan 10)-------Accesslink---------------(Vlan 100)--SW2--(Vlan 100)------------PC2
Think both the ports on SW1 are in Vlan 10 and all the ports on SW2 are in VLAN 100, and PC1 and PC2 are in same subnet, they can communicate each other
Thanks
Raju
01-29-2018 09:47 PM
Can two Vlans on the same subnet comminucate if we are using different vlans.
ie we use vlan 10 on SW1 and 20 on SW2
PC1---------SW1--------Accesslink-----------------SW2--------------PC2
waiting for your reply
01-30-2018 05:22 AM
01-23-2013 02:27 AM
Hi,
We should always use the terminology of network and subnet properly. When we talk about networks we should always remember it is a classful either /8, /16, or /24 ex: 192.168.10.0 ; 172.16.0.0 ; 10.0.0.0
And for the subnets it means a major network is divided into smaller networks.
Example: Network: 192.168.10.0/24
Subnet: 192.168.10.32/27
192.168.10.64/27
192.168.10.96/27 and so on...
So to answer your question, I think you cannot configure two switches with different vlan within same subnet because it will overlap other vlan or the ip address that was already configured.
I made and example for this situation, you can create different vlans in both switches and still communicate if they are in the same vlans. For example in switch1 have vlan 10, 20 and 30 same as in the switch2 and pc1(192.168.10.40) can ping with pc2 in switch2 (192.168.10.41) because both are in the same vlan. In switch1 there are 2 pc in vlan 30 and they ping each other together with the laptop in switch2 (192.168.11.12).
I hope this will help you understand.
Thanks.
01-30-2018 12:12 AM - edited 01-30-2018 12:15 AM
Hi,
is there trunk between your 2 switches?
If yes, your trunk transport which VLAN ID?
01-30-2018 12:22 AM
01-30-2018 01:07 AM
01-30-2018 03:46 AM
01-30-2018 04:15 AM
01-30-2018 05:26 AM
01-30-2018 09:31 AM
Joseph makes an important point about whether frames are transmitted with tags or without tags. If two switches are connected on an interface which is configured as trunk then the frames will be tagged and if they are tagged then the PCs will NOT be able to communicate. But most of the questions in this discussion have specified that the link connecting the switches is an access port. In this case there are no tags on the frame, each switch believes that the peer switch is in the same vlan (does not know the configured vlan of the peer) and the PCs can communicate successfully.
HTH
Rick
01-30-2018 09:35 AM
01-30-2018 10:22 AM
Joseph makes an appropriate technical correction. And frankly it is not important whether an individual frame is tagged or is untagged. What is important is that on the trunk connection the switch is tag aware and that the switch does know what vlan the frame is associated with on the neighbor and therefore knows to what vlan it can forward the frame.
On an access ort there is no knowledge of what is on the neighbor switch and on a trunk there is knowledge of what is on the neighbor switch. And that is what determines whether the PCs can communicate.
HTH
Rick
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