See the unique charm of the Ping command

  
                

ping command, a function with the power of God, in the win7 system, the use of the ping command can be said to be the enemy of the network failure, under the operation of the ping command, various network faults can be easily checked, together to see Let's take a look at its charm.

Note: When using the ping command, you need to pay attention to it: one or two times of successful downloading with another host. The reported exchange does not mean that the TCP/IP configuration is correct. You must execute a large number of local hosts and remotes. The packet exchange of the host can be used to ensure the correctness of TCP/IP.

Ping command to use tips

First, <;0” can be conditionally omitted

Everyone commonly used "ping127.0.0.1” command to do on this machine Loop test to verify that the machine's TCP/IP protocol cluster is properly installed. Win7 system download but you found out? Use "ld127.1" rd12; this command can also get the same test results, in fact, "ping127.1" and "ld127.0.0.1" rd, the two commands are the same, All are in the loop test.

Tips for using IP addresses in the Ping command application. As we all know, the IP address consists of 32-bit binary digits. For the convenience of everyone, every 8-digit binary number is converted into a decimal number, so an easy-to-remember IP address consisting of four-part decimal digits (such as 127.0.0.1) is formed. ). Since the Windows operating system has the feature of automatically populating <.0”, I can change “127.0.0.1” to “127.1”.

However, the omission of this ".0” is conditional and cannot be omitted arbitrarily. In the application of the Ping command, you can only omit one or more “.0”; ;

If the one or more <.0” is not next to the last part of the decimal number, but in other locations, then this “.0” can not be omitted, the latest windows7 system such as "ping202 .0.96.1” can't be written as "ping202.96.1”. This is because the result returned by ping202.96.1” is the response information of “202.96.0.1”, instead of the response information of “202.0.96.1”.

Second, the number string instead of the IP address

In the Ping command, you can also use the numeric string instead of the IP address, you believe? Run "ld3658906394"" command, you will see "ldquo; 218.22.123.26” The return information of this IP address. Why is this happening? In fact, & ldquo;3658906394” is another representation of the IP address <218.22.123.26”. Of course, you can also ping other IP addresses in the same way.

How is the string converted? In fact, it is not complicated. Take the IP address of “218.22.123.26” as an example. The method of converting an IP address into a numeric string is as follows: First, “218.22. 123.26 & rdquo; converted to hexadecimal "DA.16.7B.1A", and then remove the decimal point, become "DA167B1A", and finally convert this hexadecimal number to decimal "3658906394", then “ 218.22.123.26” became "<3658906394”. The same method is used to convert other IP addresses into numeric strings.

Tip: In some LAN environments, using the “Ping+Digital String” command may fail with a message “Unknownhost number string” because the number string is resolved to the host name. Instead of an IP address. Therefore, after mastering the above techniques, the network management can skillfully use the “omitted” mode to reduce the character input of the Ping command and improve work efficiency when performing network testing or maintenance.

Judging network failures through several Ping commands

Computers in the LAN cannot be connected to the Internet for several reasons, such as the system's IP settings, network cards, router gateways, and line faults. To troubleshoot hardware and line problems, we can use the Ping command to quickly detect network conditions.

First, we click on the start of the system, enter the cmd command in the run bar, the DOS window in the operating system will pop up, here we can input various DOS commands intuitively and conveniently. Next, we can enter Ping127.0.0.1 in DOS, the address is a local loop address. If the address cannot be pinged, it indicates that the local machine TCP/IP protocol is not working properly. In this case, check the operating system of the machine. Installation settings.

If the above operation is successful, you can ping, then we can enter IPConfig to view the local IP address, and then ping the IP (such as 192.168.0.100), the general indicates the network adapter (network card or MODEM) If the network adapter is faulty, you can try to replace the network card or driver. Then Ping the IP of a computer on the same network segment. If it does not work, it indicates that the network line is faulty. If the network also contains a router, you should first ping the IP address of the router on the local network port. If there is a problem with this line, you should check it. The switch or network cable in the network is faulty.

If the intranet computer can ping the ping, then Ping Xinlian's router (gateway), if not ubiquitous, if the router fails, the router can be replaced, or the network cable can be connected to the router. If the machine is directly connected to the router, if it can be pinged, check the network cable fault from the router to the switch. If the ping fails, you can try to replace the computer and then ping. If it cannot be pinged, check the router fault.

Finally, if the router is normal, you can detect a network with DNS service. After you ping the IP address of the target computer in the previous step, you still cannot connect to the machine. You can ping the machine. The network name, such as Pingwww.ghost9.com or www.gwin7.com, will normally display the IP pointed to by the URL. This indicates that the DNS settings of the local machine are correct and the DNS server is working properly. Otherwise, it may be one of them. The fault can also be detected by the Ping computer name (WINS is a service that resolves the computer name to an IP address).

If there is no problem with the above ping test, then we think that the network is normal. If an application fails to connect to the network properly, if the webpage cannot be opened, the corresponding DNS server reason should be checked, such as QQ. If an application such as a game cannot access the Internet, you should check the corresponding program or its server is faulty.

After the above steps are completed, it is easy to judge whether there is a problem in a certain link. The reset setting, the hardware change hardware. In addition, if you want to detect the connection status of the network, you can also add -t to the address of the Ping, so that the Ping connection can be continuously performed, which can reflect whether the connection of the network is interrupted or packet loss occurs.

In the use of the system, the ping command is indeed a very good function. When the network fails, using the ping command, it is very easy to check where the problem occurs, there is a similar network failure. Users can try it.

Copyright © Windows knowledge All Rights Reserved