当前位置:操作系统 > 玩转网络 >>

入门网络命令介绍

答案:

ⅰ ping
c:\> ping 61.136.253.204 [向61.136.253.204发送数据包]
pinging 61.136.253.204 with 32 bytes of data: [正在发送 32 字节的包到 :61.136.253.204]

request timed out. [丢包 原因:超时]
reply from 61.136.253.204: bytes=32 time=62ms ttl=120 [正确抵达|大小32字节|消耗时间 62ms ]
reply from 61.136.253.204: bytes=32 time=69ms ttl=120
reply from 61.136.253.204: bytes=32 time=59ms ttl=120

ping statistics for 61.136.253.204 [资料统计]
packets: sent = 4, received = 3, lost = 1 <25% loss>, [发送了4个数据包,收到了3个,丢失1个占25% ]
approximate round trip times in milli-seconds:
minimum = 59ms, maximum = 69ms, average = 63ms [最快抵达 59ms 最慢 69 ms 平均时间 63ms]

现在我们来加入命令参数:
c:\> ping -a 61.136.253.204 -l 1 -t [-a 代表同时获取主机名 -l 1 指定 包大小为 1bytes -t 直到用户手动终止]
pinging xingxing [61.136.253.204] with 1 bytes of data:

reply from 61.136.253.204: bytes=1 time=49ms ttl=120 [因为只发送1字节的包,所以时间缩短了]
reply from 61.136.253.204: bytes=1 time=59ms ttl=120
reply from 61.136.253.204: bytes=1 time=54ms ttl=120
reply from 61.136.253.204: bytes=1 time=55ms ttl=120
reply from 61.136.253.204: bytes=1 time=50ms ttl=120
reply from 61.136.253.204: bytes=1 time=49ms ttl=120
reply from 61.136.253.204: bytes=1 time=49ms ttl=120

ping statistics for 61.136.253.204
packets: sent = 7, received = 7, lost = 0 <0% loss>, [发送了7个数据包,收到了7个,丢失0个占0% ]
approximate round trip times in milli-seconds:
minimum = 49ms, maximum = 59ms, average = 52ms [最快抵达 59ms 最慢 69 ms 平均时间 63ms]
control-c [按 ctrl + c 强行终止]
^c
c:\>

上一个:菜鸟必读之特殊用途的IP地址介绍
下一个:网络工程师必懂的专业术语

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,