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

51Testing软件测试网${2Z;@:?,qx/G(`*j

ping是常用的网络命令之一,用来检测网络的状况。51Testing软件测试网Vbg_:m
ping -c 5www.google.com设置ping的次数为5次
!Lb1m|+P9FK0ping -s 24www.google.com设置数据包为24bytes加上Icmp头8bytes,应该显示32bytes,默认是56bytes51Testing软件测试网$c2kiIl KA#l1?P0l
ping -i .05www.google.com设置ping时间间隔为0.05秒51Testing软件测试网X.cb} g cD,]
ping -qwww.google.com安静模式,不将过程回显在屏幕上51Testing软件测试网 miZy8R5{
当然以上参数可以搭配使用51Testing软件测试网%m:Q!u8{+~
例如:51Testing软件测试网bH(v,^{7qv3X-| l&T
ping -c 5 -s 24 -i .05www.google.com51Testing软件测试网T!Vd8dr~a$q*F U{_

4|@{.G!C~ot0很多网站为了安全起见,都封堵了ICMP协议,所以ping不通不一定就是远程主机离线,很有可能就是封堵ICMP协议的结果。51Testing软件测试网 jD m|-q6x&o


TAG: Linux

 

评分:0

我来说两句

日历

« 2024-04-10  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

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

RSS订阅

Open Toolbar