Computer Networks/Tracert/Host
Tracert is a Windows command used to display the route (path) and transit delays of packets across an Internet Protocol (IP) network. These activities will show you how to use the tracert command to trace the route to a host.
Preparation
editTo prepare for this activity:
- Start Windows.
- Log in if necessary.
Activity 1 - Trace Route to the Default Gateway
editTo trace the route to the default gateway:
- Open a command prompt.
- Use ipconfig to display the default gateway address. Note the Default Gateway displayed.
- Type tracert -d <default gateway address> where <default gateway address> is the default gateway address displayed above. For example, if the default gateway address was 192.168.1.1, you would type tracert -d 192.168.1.1. Then press Enter.
- Observe the results. You should see one hop to the default gateway, because the default gateway is on the same network.
Activity 2 - Trace Route to an Internet Host without Name Resolution
edit8.8.8.8 is the IP address of one of Google's public DNS servers. To trace the route to this server:
- Type tracert -d 8.8.8.8 and press Enter. The -d option disables host name resolution and therefore performs faster.
- Observe the results. Identify the number of hops (routers) and time delay between your host and the Google server. Hops that show * and "Request timed out." are routers that are configured to not respond to Internet Control Message Protocol (ICMP) packets. These may sometimes be referred to as black hole routers.
Activity 3 - Trace Route to an Internet Host with Name Resolution
editTo trace the route to an Internet host with name resolution:
- Type tracert 8.8.8.8 and press Enter. Note the removal of the -d option used above.
- Observe the results.
Activity 4 - Terminate a Trace
editTo terminate a trace:
- Type tracert 8.8.8.8 and press Enter.
- During the trace, press Ctrl + C to terminate the command. Traces are frequently terminated early when the destination appears to be unreachable.
- Close the command prompt to complete this activity.