cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
859
Views
4
Helpful
4
Replies

Why am I able to ping over multiple access ports?

hfakoor222
Spotlight
Spotlight

When I create a toplogy like below

 

2023-03-10 22_10_25-R5.png

 

 

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?

1 Accepted Solution

Accepted Solutions

2023-03-10 22_10_25-R5.png

 

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 

View solution in original post

4 Replies 4

balaji.bandi
Hall of Fame
Hall of Fame

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)

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

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. 

 

2023-03-10 22_10_25-R5.png

 

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 

Joseph W. Doherty
Hall of Fame
Hall of Fame

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).