巧学活用网管工具
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人

2.利用ping命令(-t参数)测试网络是否通畅

利用带有-t参数的ping命令可以测试网络是否通畅。执行带有-t参数的ping命令后,系统就不停地运行ping命令,只有按下“Ctrl”+“C”键后,才会终止该命令的运行。

例如:

            C:\WINDOWS>ping 192.168.1.1 -t
            pinging 192.168.1.1 with 32 bytes of data:
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            Reply from 192.168.1.1: bytes=32 time<10ms TTL=64
            ping statistics for 192.168.1.1:
            Packets: Sent = 8,Received = 8,Lost = 0 (0% loss),
            Approximate round trip times in milli-seconds:
            Minimum = 0ms,Maximum = 0ms,Average = 0ms
            Control-C