中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 02:23
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How to use ping
Printable Version  1,783 / 6
Floor1 kuangfenglj Posted 2007-10-16 09:31
初级用户 Posts 5 Credits 20
1、Typical Order of Detecting Network Failures via Ping

Under normal circumstances, when we use the Ping command to find the problem or test the network operation, we need to use many Ping commands. If all run correctly, we can be confident that the basic connectivity and configuration parameters are fine; if some Ping commands have operation failures, it can also indicate where to find the problem. The following gives a typical detection order and corresponding possible failures:

- ping 127.0.0.1
This Ping command is sent to the IP software of the local computer, and this command never exits this computer. If it doesn't do this, it means there are some basic problems with the installation or operation of TCP/IP.

- ping local IP
This command is sent to the IP address configured for our computer. Our computer should always respond to this Ping command. If not, it means there is a problem with local configuration or installation. When this problem occurs, LAN users should disconnect the network cable and then resend this command. If this command is correct after the network cable is disconnected, it means another computer may have the same IP address configured.

- ping other IPs in the LAN
This command should leave our computer, pass through the network card and network cable to reach other computers, and then return. Receiving a ping response indicates that the network card and carrier in the local network are running correctly. But if 0 ping responses are received, it means the subnet mask (the code that separates the network part and the host part of the IP address when subnetting) is incorrect, or the network card configuration is incorrect, or there is a problem with the cable system.

- ping gateway IP
If this command responds correctly, it means the gateway router in the LAN is running and can respond.

- ping remote IP
If 4 responses are received, it means the default gateway is successfully used. For dial-up users, it means they can successfully access the Internet (but it doesn't rule out problems with the ISP's DNS).

- ping localhost
localhost is a network reserved name of the operating system, which is an alias of 127.0.0.1. Every computer should be able to convert this name to this address. If it doesn't do this, it means there is a problem in the host file (/Windows/host).

- ping www.xxx.com (such as www.yesky.com Yesky.com)
Ping the address of this domain name, usually through the DNS server. If there is a failure here, it means the IP address configuration of the DNS server is incorrect or the DNS server is faulty (for dial-up users, some ISPs no longer need to set the DNS server). By the way: we can also use this command to realize the function of converting domain names to IP addresses.

If all the above-listed Ping commands can run normally, then we can basically be at ease about the functions of local and remote communication of our computer. However, the success of these commands does not mean that all our network configurations are fine. For example, some subnet mask errors may not be detected by these methods.
Floor2 xiandan703 Posted 2007-10-16 11:05
初级用户 Posts 32 Credits 62
Learning and learning~~ Thank you~~
Floor3 hxwxyz Posted 2007-10-16 19:05
中级用户 Posts 123 Credits 245
Learning
Floor4 lydgc Posted 2007-10-16 22:08
新手上路 Posts 11 Credits 18
It is quite useful for checking network faults
Floor5 jxzhxch Posted 2007-10-23 22:42
初级用户 Posts 28 Credits 52
Floor6 greedrock Posted 2007-10-23 23:04
新手上路 Posts 6 Credits 12
Floor7 jxzhxch Posted 2007-11-03 09:29
初级用户 Posts 28 Credits 52
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023