Ping command, a function with the power of God, win7 system, the use of ping command can be said to be the enemy of network failure, under the operation of ping command, various network faults can be easily checked, together to see it Charm.
Ping command needs to pay attention to: use one or two times successfully with another host. Windows7 system download reported that the exchange does not mean that the TCP/IP configuration is correct, and must execute a large number of data between the local host and the remote host. Packet exchange can be used to ensure the correctness of TCP/IP.
Ping command use tips
First, <;0” can be conditionally omitted
everyone commonly used & ldquo; ping127.0.0.1 & rdquo; command on the machine to do loop test, used to verify the machine Whether the 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.
Ping command application IP address usage skills. 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 this 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" and you will see "218.22.123.26" The return information of the 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? 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” Convert to hexadecimal “DA.16.7B.1A”, then remove the decimal point and change to "DA167B1A", and finally convert this hexadecimal number to decimal "3658906394", then "ld.218.22.123.26" ” Becomes & ldquo;3658906394” The same method is used to convert other IP addresses into numeric strings.
Hint: In some LAN environments, using the “Ping+Digital String” command may fail with the message “Unknownhost number string”, because the string is parsed into the host name, and Not 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.
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 rule indicates that the network adapter (network card or MODEM) is working properly. If the network adapter fails, 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 internal network computer can ping通, then Ping Xinlian's router (gateway), if not, such as 192.168.0.1, if the router fails, you can replace the network cable connected to the router, or connect the PC directly with the network cable. To the router, if it can ping通, it should check the network cable fault from the router to the switch. If it cannot be pinged, 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 pinging the IP address of the target computer in the previous step, you can still connect to the machine. You can ping the network name of the machine. For example, Pingwww.ghost9.com or www.gwin7.com, under normal circumstances, the IP address pointed to by the URL will appear. This indicates that the DNS settings of the local machine are correct and the DNS server is working properly. Otherwise, one of them may be faulty. It is also possible to detect a WINS resolution failure by pinging the 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 the network is normal. If an application cannot connect to the network properly, if the webpage cannot be opened, the corresponding DNS server reason should be checked, such as QQ, a certain game. If the application does not have access to the Internet, you should check the appropriate program or its server is down.
After the above steps are completed, it is easy to judge whether there is a fault 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 really a very good function. When the network is faulty, using the ping command, it is very easy to check where the problem occurs. Users with similar network faults can go. Give it a try.