The ping command detects the network

Ping command to test the network?

The Ping command is a dedicated probing tool for the TCP/IP protocol integrated in Windows. Where the TCP/IP protocol is applied to the local or wide-area network, regardless of whether you only manage a few computers within the home, office LAN, or campus network, corporate network and even the Internet Internet, when the client and the client can not be accessed properly or the network work a variety of unstable situations, it is recommended that you must try to use the Ping command to confirm and The first thing you need to do is to use the Ping command to confirm and troubleshoot the problem, which can sometimes work at once.

Ping Command Syntax Format

1. The specific syntax format of the Ping command: ping destination address [parameter 1] [parameter 2] where the destination address is the IP address or domain name of the computer under test. The main parameters commonly used are: -a: resolve host address. -n: data: number of test packets sent, default value is 4. -l: value: size of the buffer sent. -t: continue the Ping command until the user presses Ctrl+C to terminate it. Additional parameters for Ping can be viewed by running the Ping or Ping-? commands to see them.

Tips for applying the Ping command (checking the working of the TCP/IP protocol)

1. When you use the Ping tool to check the working of the TCP/IP protocol on a network server and any client, you just need to Ping the IP address of that computer on any other computer in the network. For example, to check whether the TCP/IP protocol on this machine is working properly, just type Ping127.0.0.1 in the “Run” subsection under the Start menu. If the machine’s TCP/IP protocol is working properly, the DOS screen will display the following information:

2. The above returned four test packets, of which the bytes (or bytes) = 32 that the size of the packet sent in the test is 32 bytes, the time (or time) <10ms that the host with the other side of the round-trip time used by the other host is less than 10 milliseconds, TTL = 64 indicates that the current test uses the TTL (TimetoLive) value of 64 (the value will be different depending on the TCP/IP protocol working platform) If there is a problem with the network, the response will be returned as shown below failed information, or until Requesttimedout. indicating that the network connection failure.

3. Network connectivity failure of such a situation, we must carefully analyze the causes of network failure and may have problems with the online node. It is recommended to start from the following aspects of troubleshooting: First, is to check whether the test computer’s network card is installed correctly and has been connected (the most intuitive way is to check whether the network card is installed correctly, specifically view the method “Start → Settings → Control Panel → System → Device Manager → Network Adapters,” whether the network card has an exclamation point or a red cross, and then there is a network connection failure, the network connection failure. The first thing you need to do is to check if your network card is installed correctly, specifically to see if there is an exclamation mark on the card or a red cross on the card, and then to check if the Link light is on.)

Two, and then see whether the computer under test has been installed TCP / IP protocol (specific method is by selecting “Start → Settings → Control Panel → Network → Local Connection → Properties” to view);

Three, to check whether the network services in the Windows system has been started! (By selecting “Start → Settings → Control Panel → Services”, in the dialog box that appears to find the “Server” item, to see the “status” shown in the whether the “(Started). If the above three steps of the check has not solved the problem, we recommend that you reinstall the network card driver and set up a TCP / IP protocol, if the TCP / IP protocol problems, this time can be completely resolved.

Ping command application skills (check whether the specified IP device is in use)

1. In accordance with the above method, we can also use the Ping command to check the work of any client turbulent computer TCP/IP. For example, we want to check the network of any client “PC01” on the TCP / IP protocol configuration and work, can be directly in the machine Ping the IP address of the machine, if the return of the success of the information that the IP address configuration is correct.

2. If it fails, you can check the following steps: First, check the entire network, focusing on whether the IP address is being used, when the IP address has not been used by the device, naturally, we can not Ping through the device; and then, then look at the use of the IP address of the workstations have been correctly connected to the network (in many cases, the use of the IP address of the workstations) (In many cases, the workstation with the IP address is not connected to the network, which is a low-level error). The above tips are still focused on the use of the Ping command on a LAN.

3. In fact, the Ping command is not only widely used in LANs, but also in the Internet, where it is often used to detect remote connections to the network. Normally, when we encounter the following two situations, we need to use the Ping tool to test the connectivity of the network. For example, when a web page of a certain website is not accessible, you can use the Ping command to test it. For example, when you can not access the home page of NetEase, you can use the “Ping” command line to test, if the return information, that the other host has opened; on the contrary, it indicates that in some part of the network connection may have a failure, or the other host is not open.

Note

Ping command is simple, but the actual use of the role is extraordinary, flexible use of the belief that will bring you unexpected surprises.

How can I use the ping command to check the operation of my local network?

First get the TCP/IP configuration of your computer, open a command prompt, and type ipconfig. In the ipconfig command display, make sure that the network card of the TCP/IP configuration you are testing is not in the “media disconnected” state.

1. Ping127.0.0.1 to confirm that the local TCP/IP stack is working properly

The ping command is sent to the local computer’s IP software, which never exits the computer. Failure to do so indicates

some minimal problem with the installation or operation of TCP/IP or a corrupt network card.

2. Ping the local IP address to make sure that the network card and link are working properly

This command is sent to the IP address configured for our computer, and our computer should always respond to this ping command, and if the ping goes through

, it means that the network adapter (card or MODEM) is working properly, and if it doesn’t go through, the network adapter is failing. If it does not, the network adapter is malfunctioning. When this problem occurs, users should disconnect the network cable and resend the command. If this command is correct after the network cable is disconnected, another computer may be configured with the same IP address.

3. ping other IPs on the LAN

This command should leave our computer, go through the network card and network cable to reach other computers, and then return. Receiving a return answer indicates that the NIC and carrier in the local

network are operating correctly. However, if 0 return answers are received, then the subnet mask (the code that separates the network portion of the IP address

from the host portion of the IP address when subnetting) is incorrect or the NIC is misconfigured or there is a problem with the cable system.

4. Ping network gateway to confirm normal routing between gateways

This command, if answered correctly, indicates that the gateway router on the LAN is operational and able to respond.

If the ping command fails, verify that the default gateway IP address is correct and that the gateway (router) is operational.

5. Ping the remote host to confirm connectivity to the remote host

If the ping command fails, verify that the IP address of the remote host is correct, that the remote host is operational, and that all gateways (routers) between the computer and the remote host

are operational.

6. Use the ping command to check the connectivity of the DNS server IP address.

If this command is answered correctly, it means that the DNS server can be reached, the network connection is open, and the user can access the Internet normally.

If the ping command fails, verify that the IP address of the DNS server is correct, that the DNS server is running, and that the gateway (router) between the computer and the

DNS server is running

.