04-11-2023 12:35 AM
When I create a toplogy like below
I've created SVI vlan 21 and SVI vlan 11 on all switches all links are trunk except the access ports pointing to the PCs.
When I ping from switch D1 or D2 to the PCs, how am I able to ping across multiple ports without an ip route? Does this happen after the mac address is learned through flooding from the initial ping?
Solved! Go to Solution.
04-11-2023 02:50 AM
since the L2 domain is shared between three SW (if it L2 SW or it L3SW)
any host in any SW can connect to other host in any SW in same subnet without routing
any host in any SW can ping SVI in any SW in same subnet without routing
04-11-2023 12:47 AM
If the Switch configured VLAN 11 and VLAN 21 SVI Interface, Switch can able to ping Host - that is normal behaviour
Try using the source interface VLAN 11 and try to ping VLAN 21 PC IP address it will not work, since there is no IP routing enabled to route between Inter-VLAN devices.
You can also test VLAN 11 PC 1 to VLAN 21 PC2 and check is this reachable. (not from D1 or D2)
04-11-2023 01:30 AM
Hi
You only need routes when pinging across network, inside the same network you dont need route. You are actually pinging from the gateway to the PC.
Of the ports are in layer 2, like yours, you can have as many ports as possible and make no difference.
But, in order to ping from one PC to the Other, if they were in different vlans, you need to have IP routing condfig on the switch.
04-11-2023 02:50 AM
since the L2 domain is shared between three SW (if it L2 SW or it L3SW)
any host in any SW can connect to other host in any SW in same subnet without routing
any host in any SW can ping SVI in any SW in same subnet without routing
04-11-2023 03:06 AM
Re: without IP route or from initial ping?
As the other posters have already noted, as/if both D1 and D2 have interfaces in VLANs 11 and 21, then they are in each VLAN and routing is NOT needed.
Both @balaji.bandi and @balaji.bandi have noted to jump between VLANs needs routing, which is correct, but that, in this case does NOT require explicit static route statement nor dynamic routing as all it needs is the routing feature active with "connected" interfaces. I.e. pinging between your two PCs might work fine (by default).
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