How do I use the Traceroute command?

Traceroute is a diagnostic tool that can determine the point of failure or lag in a route that is causing difficulties for your Internet connection.

On a machine running Windows the command is TRACERT.

Click details to expand
Using Traceroute in Windows 95/98/ME
  1. Click Start 
  2. Click Run
  3. Type in command 
  4. Click OK 
  5. Go to your C: directory. If you are unfamiliar with DOS commands then type in HELP for a list of all the DOS commands, or /? after the command you want help with. For example, CD /?

You can tell what directory you are in by looking to the left of the command prompt cursor. For example, C:\Windows>

Reading right to left, this line means you are in the Windows folder in the C: drive. You can change directory up a level by typing in: cd..

For example, Typing in cd.. from the c:\>Windows folder will take you up one level to the c:\> directory.

• Type in tracert www.xtra.co.nz or whatever address it is that you want to trace a route to. If you type in tracert www.xtra.co.nz > textfile.txt then this will write the results to a file called textfile.txt in the same directory that you run the tracert test from.

Using Traceroute in Windows 2000/XP
  1. Click Start 
  2. Click Run 
  3. Type in cmd 
  4. Click OK 
  5. Go to your C: directory. If you are unfamiliar with DOS commands then type in HELP for a list of all the DOS commands, or /? after the command you want help with. For example, CD /?

You can tell what directory you are in by looking to the left of the command prompt cursor. For example, C:\Windows>

Reading right to left, this line means you are in the Windows folder in the C: drive. You can change directory up a level by typing in: cd..

For example, typing in cd.. from the c:\>Windows folder will take you up one level to the c:\> directory. 
• Type in tracert www.xtra.co.nz or whatever address it is that you want to trace a route to. If you type in tracert www.xtra.co.nz > textfile.txt then this will write the results to a file called textfile.txt in the same directory that you run the tracert test from.

Running Traceroute
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] > textfile.txt

Options:
> textfile.txt
Writes the results to a file called textfile.txt in the same directory that you run the tracert from.

-d
Do not resolve addresses to hostnames.

-h maximum_hops
Maximum number of hops to search for target.

-j host-list
Loose source route along host-list.

-w timeout
Wait timeout milliseconds for each reply.

Example:

tracert www.xtra.co.nz
Tracing route to xtra.co.nz [202.27.184.102]
over a maximum of 30 hops:

1 155 ms 139 ms 141 ms 192.168.9.241
2 141 ms 139 ms 140 ms 192.168.9.13
3 145 ms 145 ms 146 ms xtra.co.nz [202.27.184.102]

Trace complete.

The first column is the hop number. The next three columns show Ping times between you and that particular host. The last column shows the name of that server, or gateway, and its IP address.



Was this information helpful?

 
Answer How do I use the Traceroute command?

Additional Feedback (optional)
We would love to hear your comments on how we can improve this answer