We are using More switches in our LAN setup,
We just want to know how many Switches we have crossed to reach the destination IP.
Thanks in advance.
We are using More switches in our LAN setup,
We just want to know how many Switches we have crossed to reach the destination IP.
Thanks in advance.
If the switches are without management, you cant know because they are blind, meaning they wont/arent being treated as a node/hop like routers are
Easy, provided you have access to these networking devices (switches). Log in and ask it to tell you who it's layer 2 neighbors are. If Cisco that's show CDP neighbor
and if not it's probably show LLDP neighbor
.
Adding the detail
keyword to the end of that command will tell you the IP address of the networking device it sees. Telnet/SSH into that device and repeat. This will give you a layout.
show arp
and see the mac address of the IP address and then show mac address table
and trace it home.
If I understood the question, and it's Cisco, you can use:
traceroute mac ip source-ip-addr dest-ip-addr
This requires CDP enabled on all the switches. Of course source-ip-addr and dest-ip-addr must belong to the same subnet.