What is the function of the tracert command? Detailed tracert command

  
                

The tracert command in the command prompt is defined as a route tracking utility. The tracert command is mainly used to determine the path taken by an IP packet access target. This article will explore the tracert command in the Win7 system environment, and understand what the tracert command has.

1. Enter the Windows command prompt. Win7 system can be entered directly by entering "ldd;cmd" or "command prompt" in the input box at the bottom of the start menu. The XP system needs to find the run in the Start menu (or press the shortcut key R), enter cmd in the Run dialog box, and then click the “OK” button.

2. Enter the console as shown below. Below we will discuss the use of several major features of the tracert program.

3, enter "ldcert" in the command line and add an IP address at the end, you can query the router and its IP address from the machine to the computer where the IP address is located. The IP address following in the figure below is the IP address of another computer in the LAN under the same router.

4, 5 information from left to right represent "survival time" (each time through a router node increased by 1), "ld three times ICMP packet return time" (total 3, in milliseconds ms) and <;passing the router's IP address" (if there is a hostname, it will also contain the hostname).

5, you can also enter “tracert & rdquo; followed by a URL, DNS resolution will automatically convert it to an IP address and explore the routing information. If you enter the URL address of Baidu's experience later, you can find that a total of 10 messages are queried. The information with an asterisk (*) indicates that the ICMP packet return time has expired.

6. If you add a non-existent IP address after the &traquo;tracert” command, the tracert program will report an error. As shown below.

7. Enter “-d” in the middle of the &traquo;tracert” command and IP address or URL address, you can not resolve the IP address to the host name. As can be seen from the figure below, after adding "ld";-d” will not display the words "PC-helei", that is, the host name is not displayed.

8. Enter “-h” in the middle of the <quo;tracert” command with the IP address or URL address, and add a number afterwards to specify the maximum number of hops to be searched by this tracert program. After adding “ -h 5 ” as shown below, the search only jumps 5 times between routers, and it ends unconditionally.

9. Enter “-w” in the middle of the <quo;tracert” command with the IP address or URL address, and add a number afterwards to specify the number of milliseconds that tracert will specify for each reply.

10, In addition, the tracert also has such commands as "“-j”,“-r”,“-s”,“-4”,“-6” In the command line, enter the command “tracert” directly to find out, here is not a detailed description.

The above is a detailed explanation of the tracert command. It also demonstrates the functions of many tracert commands. If you need to use the tracert command, you can take a look at the above tutorial carefully. The whole operation is not difficult. .

Copyright © Windows knowledge All Rights Reserved