08-10-2024
12:20 PM
- last edited on
08-10-2024
03:15 PM
by
rupeshah
If PC1 ip address 10.0.0.20 and PC2 ip address 10.0.0.30 are connected to two different switches-1 interface valn 20 and switch-2 valn 30 and they are on the network but assigned to different VLANs, they cannot communicate directly without a router
08-10-2024 03:31 PM
Yes, correct but there might be a trick to make so they do ping ok in that scenario; let me check... will reply soon
Regards, ML
**Please Rate All Helpful Responses **
08-10-2024 04:57 PM
As long as both IPs are on the same network and the ports are configured as access ports, you can have one host in vlan 20 and the other one in vlan 30.
HTH
08-10-2024 08:34 PM
By "router" you also include L3 switch, correct?
If the VLANs are not bridged, yes you would need L3. There are multiple ways to bridge the VLANs.
08-11-2024 12:59 PM
I will add one item to the helpful response by Reza. He says that if both PCs are connected to access ports. I would add that if the switch to switch connection is also an access port. then the IPs will successfully communicate. If the switch to switch connection is a trunk then the IPs will not communicate.
I believe that this is what Joseph describes when he mentions bridging the VLANs.
08-12-2024 01:32 AM
Yes, you may correct
08-11-2024 02:42 PM
So, besides having access link between 2 switches, there was another trick with Native vlan. Native vlan id is different between 2 interconnecting switches; then PCs on the same subnet but in different vlans were OK. This seems to not work any longer in IOS 15.x. I am having problem re-creating the issue right now - spanning tree is blocking ports due to native vlan mismatch.
Regards, ML
**Please Rate All Helpful Responses **
08-11-2024 04:44 PM
Assuming this wasn't intended to be a SPAM post (which it looks like it might have been because @rupeshah edited it):
@rajeevsri you've made a statement (of the obvious subject to the exceptions the others have listed above) but what was your actual question?
08-12-2024 01:31 AM
I am able to ping from P1 to P2 destination.
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