3、Ping同网段计算机的IP:
Ping一台同网段计算机的IP,不通则表明网络线路出现故障;若网络中还包含有路由器,则应先Ping路由器在本网段端口的IP,不通则此段线路有问题;通则再PING路由器在目标计算机所在网段的端口IP,不通则是路由出现故障;通则再Ping目的机IP地址。
4、Ping网址:
若要检测一个带DNS服务的网络,在上一步Ping通了目标计算机的IP地址后,仍无法连接到该机,则可PING该机的网络名,比如Ping www.sina.com.cn,正常情况下会出现该网址所指向的IP,这表明本机的DNS设置正确而且DNS服务器工作正常,反之就可能是其中之一出现 了故障;同样也可通过Ping计算机名检测WINS解析的故障(WINS是将计算机名解析到IP地址的服务)。
利用Ping命令判定网络故障
1. Ping本机IP
例如本机IP地址为:169.254.190.92。则执行命令Ping 169.254.190.92。如果网卡安装配置没有问题,则应有类似下列显示:
C:\Documents and Settings\Administrator>ping 169.254.190.92
Pinging 169.254.190.92 with 32 bytes of data:
Reply from 169.254.190.92: bytes=32 time<1ms TTL=128
Reply from 169.254.190.92: bytes=32 time<1ms TTL=128
Reply from 169.254.190.92: bytes=32 time<1ms TTL=128
Reply from 169.254.190.92: bytes=32 time<1ms TTL=128
Ping statistics for 169.254.190.92:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
如果在MS-DOS方式下执行此命令显示内容为:Request timed out,则表明网卡安装或配置有问题。将网线断开再次执行此命令,如果显示正常,则说明本机使用的IP地址可能与另一台正在使用的机器IP地址重复了。如 果仍然不正常,则表明本机网卡安装或配置有问题,需继续检查相关网络配置。
2. Ping网关IP
假定网关IP为:59.52.177.115,则执行命令Ping 59.52.177.115。在MS-DOS方式下执行此命令,如果显示类似以下信息:
C:\Documents and Settings\Administrator>ping 59.52.177.115
Pinging 59.52.177.115 with 32 bytes of data:
Reply from 59.52.177.115: bytes=32 time<1ms TTL=128
Reply from 59.52.177.115: bytes=32 time<1ms TTL=128
Reply from 59.52.177.115: bytes=32 time<1ms TTL=128
Reply from 59.52.177.115: bytes=32 time<1ms TTL=128
Ping statistics for 59.52.177.115:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
3. Ping远程IP
这一命令可以检测本机能否正常访问Internet。比如本地电信运营商的IP地址为:202.101.224.69。在MS-DOS方式下执行命令:Ping 202.101.224.69,如果屏幕显示:
C:\Documents and Settings\Administrator>ping 202.101.224.69
Pinging 202.101.224.69 with 32 bytes of data:
Reply from 202.101.224.69: bytes=32 time=2ms TTL=250
2021-07-19 16:40
2021-07-19 16:40
2021-07-19 16:39
2021-07-19 16:40
2021-07-19 16:39
2021-07-19 16:40
2021-07-19 16:39
2021-07-19 16:38
2021-07-19 16:38
2021-07-19 16:38
2021-07-19 16:38
2021-07-19 16:37
2021-07-19 16:37
2021-07-19 16:36