-1

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.

5
  • Please edit your question to clarify. I don't understand the question.
    – Ron Maupin
    Commented Dec 21, 2015 at 16:28
  • 1
    No one can possibly know how many switches you cross without the network layout and your device in relation, and then just looking at the diagram would tell you. A better question might be, why would this matter, and explaining that might help clarify what you are asking.
    – Radhil
    Commented Dec 22, 2015 at 0:17
  • You could improve your question by editing it to add more details. You may find our Question Checklist helpful when editing your question.
    – YLearn
    Commented Dec 23, 2015 at 23:06
  • I found his question easy to understand. Why all the downvotes? This is not an uncommon need. Commented Jul 20, 2016 at 19:26
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can provide your own answer and accept it.
    – Ron Maupin
    Commented Aug 12, 2017 at 23:57

3 Answers 3

1

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

1
  • 2
    Managed switches are not treated as hops; the management IP is almost never involved in the frame switching or the routing. If it was, it'd be a router.
    – Radhil
    Commented Dec 22, 2015 at 0:20
1

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.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.