上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
4.利用ping命令(-n参数)了解网络健康状况
“-n count”参数用于定义测试所发出的测试数据包的个数,其默认值为4。通过这个命令可以自定义发送测试ICMP数据包的个数,这对衡量网络质量是很有帮助的。
例如:
C:\WINDOWS>ping -n 10 192.168.1.188 ping ing 192.168.1.188 with 32 bytes of data: Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 Reply from 192.168.1.188: bytes=32 time<10ms TTL=64 ping statistics for 192.168.1.188: Packets: Sent = 10,Received = 10,Lost = 0 (0% loss) Approximate round trip times in milli-seconds: Minimum = 0ms,Maximum = 0ms,Average = 0ms
这是向IP地址为192.168.1.188的计算机发送10个ICMP测试数据包,发送10个,返回10个,最大延时和最小延时均为0,丢包率为0。