How to Run a Traceroute (tracert) Command
Run a traceroute to track the path data takes from your device to a specific IP address or domain. This command helps identify delays, network issues, or routing problems. It's a valuable tool for troubleshooting connectivity across Windows, macOS, and Linux systems.
In this section, we will discuss:
- Run a traceroute (tracert) command using Windows
- Run a traceroute command using Mac OS X
- Run a traceroute in Linux
- Run a traceroute
- Reviews
Run a traceroute (tracert) command using Windows
To use the traceroute command with computers running the Microsoft Windows operating system (XP):
- Select Start > Run.
- Type 'cmd’, then click OK.
- Type 'tracert' followed by a space and the domain name or IP address (for example: tracert example.com or tracert 10.0.2.1).
- Press the Enter key to run the command.
To use the traceroute command with computers running the Microsoft Windows operating system (Vista, 7):
- Open your control panel on your local computer.
- Click Programs.
- In the 'Programs and Features' window that appears, click the list under 'Turn Windows features on or off' to expand it.
- In the list that appears, check the box next to 'Telnet client’.
- Click OK.
- Select Start > Run.
- Type 'cmd’, then click OK.
- Type 'tracert' followed by a space and the domain name or IP address (for example: tracert example.com or tracert 10.0.2.1).
- Press the Enter key to run the command.
Once complete, a 'Trace complete' message will display. To copy the results of the traceroute command:
- Right-click the command prompt window, then select Select All.
- Press the Enter key to copy this information to your computer's clipboard.
- Open a new blank document (using Microsoft Word, Notepad, or a similar program).
- Right-click the blank document, then select Paste.
Run a traceroute command using Mac OS X
To use the traceroute command with computers running the Apple Macintosh operating system (OS X):
- Open the Applications folder.
- Click Network Utilities.
- Select the 'Traceroute' tab.
- Enter an IP address or domain name in the text field, then click Trace.
Once complete, a 'Trace complete' message will display. To copy the results of the traceroute command:
- While holding down the left mouse button, select and highlight all the displayed results of the traceroute command.
- You can copy these results by pressing the Command key () and the C key (or right-clicking the results and selecting Copy).
- Open a new blank document (using TextEdit, Microsoft Word, or a similar program).
- Left-click the blank document, then press the Command key () and the V key (or right-click the blank page and select Paste).
It will insert the copied results of the traceroute command into the document, which you can then save to your local computer for future troubleshooting purposes.
Run traceroute in Linux
Traceroute is a basic Linux system utility available for nearly all distribution repositories. You must first install it on your system using the package manager.
Some install examples:
Ubuntu/Debia
# dnf install traceroute
OpenSUSE
Arch Linux
Run a traceroute
Run 'traceroute' by typing the command, followed by an IP address or domain name.
Review
Traceroute works in real time in your terminal window. You may see a few or many stops before reaching your destination. Some networks are configured to block traceroute, so if the command stops outputting information in your terminal and starts showing asterisk characters, that may be the reason. Traceroute can show you if there are any blocks, slow areas, or bottlenecks that need to be improved.