Things change, roll with the punches.Oh, yeah. Go for it man, jump off the high dive, stare down the barrel of the gun, pee into the wind!

ping的常用参数

上一篇 / 下一篇  2007-01-05 00:59:46 / 个人分类:Linux

!e toP*m2dYo0ping是常用的网络命令之一,用来检测网络的状况。51Testing软件测试网(Fqj2{C4^7cp2F E
ping -c 5www.google.com设置ping的次数为5次
s]k` By0ping -s 24www.google.com设置数据包为24bytes加上Icmp头8bytes,应该显示32bytes,默认是56bytes
n!U JP.P7t!l*y1P0ping -i .05www.google.com设置ping时间间隔为0.05秒
W K?!?5M~0ping -qwww.google.com安静模式,不将过程回显在屏幕上51Testing软件测试网7` }KI/J'E:`)Q
当然以上参数可以搭配使用
&j1@$G k8LZ] @0例如:51Testing软件测试网2@!\ qA9_6|
ping -c 5 -s 24 -i .05www.google.com51Testing软件测试网1J#PU0Mo"Z"h,?-W c

W:ryx6Uj,K[0很多网站为了安全起见,都封堵了ICMP协议,所以ping不通不一定就是远程主机离线,很有可能就是封堵ICMP协议的结果。

X P*Nj&[,w)@0

TAG: Linux

 

评分:0

我来说两句

日历

« 2024-04-24  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 45977
  • 日志数: 42
  • 图片数: 3
  • 文件数: 1
  • 书签数: 13
  • 建立时间: 2007-01-05
  • 更新时间: 2007-03-03

RSS订阅

Open Toolbar