Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I determine the IP route taken for a specific IP destination (without looking at "route print" and figuring it out manually)?

In OS X there's route get 1.2.34 and in Linux there's /sbin/ip route get 1.2.3.4. Is there anything like that on Windows?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Yep. Open a command line and type tracert 1.2.3.4

share|improve this answer
    
Heh, good point. Not an optimal solution, since it does query the network for something you know locally, but for the most part, gives me the information I need. –  Ilya Oct 13 '11 at 23:17
1  
@Ilya: Using -d (no resolve IP) and -w 0 (don't wait for ping) should speed up the scan a lot. –  Hello71 Oct 14 '11 at 0:30
5  
This doesn't really do the same thing. The route get commands the original posted mentions perform a lookup in the local routing table and return the result. For example, you can ask ip route get 192.168.1.32/28 to find which routing table entry will be used for that network, but you can't ask tracert about network blocks. –  larsks Nov 4 '12 at 3:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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