免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 725 | 回复: 0
打印 上一主题 下一主题

ping [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-02 15:54 |只看该作者 |倒序浏览
ping
ping [options]  host
System administration command. Confirm that a remote host is online and responding. ping
is intended for use in network testing, measurement, and management.
Because of the load it can impose on the network, it is unwise to use ping during normal operations or from automated scripts.
Options
-a
Make ping audible. Beep each time response is received.
-A
Adapt to return interval of packets. Like -f ping, sends packets at approximately the rate at which they are received. This option may be used by an unprivileged user.
-b
Ping a broadcast address.
-B
Bind to original source address and do not change.
-c count
Stop after sending (and receiving) count ECHO_RESPONSE packets.
-f
Flood ping-output packets as fast
as they come back or 100 times per second, whichever is greater. This
can be very hard on a network and should be used with caution. Only a
privileged user may use this option.
-i wait
Wait wait seconds between sending each packet. Default is to wait one second between each packet. This option is incompatible with the -f option.
-I name
Set source address to interface name. name may also be specified as an IP address.
-l preload
Send preload number of packets as fast as possible before falling into normal mode of behavior.
-L
If destination is a multicast address, suppress loopback.
-M hint
Specify Path MTU Discovery strategy. Accepted values are do, want, or dont.
-n
Numeric output only. No attempt will be made to look up symbolic names for host addresses.
-p digits
Specify up to 16 pad bytes to fill out packet sent. This is useful for diagnosing data-dependent problems in a network. digits are in hex. For example, -p ff will cause the sent packet to be filled with all 1s.
-q
Quiet output—nothing is displayed except the summary lines at startup time and when finished.
-Q tos
Set Quality of Service on ICMP datagrams.
-r
Bypass the normal routing tables and send directly to a host on an attached network.
-R
Set the IP record route option, which
will store the route of the packet inside the IP header. The contents
of the record route will be printed if the -v option is given,
and will be set on return packets if the target host preserves the
record route option across echoes or if the -l option is given.
-s packetsize
Specify number of data bytes to be sent.
Default is 56, which translates into 64 ICMP data bytes when combined
with the 8 bytes of ICMP header data.
-S size
Set send buffer (SNDBUF) size. The default is the size of one packet.
-t n
Set the IP Time to Live to n seconds.
-T option
Set IP timestamp options. Accepted option values are:
tsonly
Timestamps only.
tsandaddr
Timestamps and addresses.
tsprespec hosts
Timestamps with prespecified hops of one or more hosts.
-U
Use older ping behavior and print full user-to-user latency instead of network round-trip time.
-v
Verbose; list ICMP packets received other than ECHO_RESPONSE.
-V
Print version, then exit.
-w n
Exit ping after n seconds.
-W n
When waiting for a response, time out after n seconds.
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22178/showart_149753.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP