ping
参数 -c 指定次数

root@ubuntu17:~# ping -c 2 www.baidu.com
PING www.a.shifen.com (111.13.100.92) 56(84) bytes of data.
64 bytes from 111.13.100.92 (111.13.100.92): icmp_seq=1 ttl=51 time=19.0 ms
64 bytes from 111.13.100.92 (111.13.100.92): icmp_seq=2 ttl=51 time=17.9 ms--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 17.998/18.526/19.054/0.528 ms

参数 -q 只看结果

root@ubuntu17:~# ping -q www.baidu.com -c 2
PING www.a.shifen.com (111.13.100.91) 56(84) bytes of data.--- www.a.shifen.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1000ms
rtt min/avg/max/mdev = 11.622/11.786/11.951/0.197 ms

参数 -s 指定ping包大小

root@ubuntu17:~# ping -s 65500 -c 2 www.baidu.com
PING www.a.shifen.com (111.13.100.92) 65500(65528) bytes of data.--- www.a.shifen.com ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1022ms

参数 -t 指定生存时间

root@ubuntu17:~# ping -t 10 www.yahoo.com -c 2
PING atsv2-fp.wg1.b.yahoo.com (124.108.103.104) 56(84) bytes of data.
From r4105-s2.tp.hinet.net (220.128.10.198) icmp_seq=1 Time to live exceeded
From r4105-s2.tp.hinet.net (220.128.10.198) icmp_seq=2 Time to live exceeded--- atsv2-fp.wg1.b.yahoo.com ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1001ms

参数 -i 指定ping的间隔时间

root@ubuntu17:~# ping -i 0.1 -c 10 www.baidu.com
PING www.a.shifen.com (111.13.100.91) 56(84) bytes of data.
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=1 ttl=51 time=11.8 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=2 ttl=51 time=11.8 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=3 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=4 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=5 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=6 ttl=51 time=11.6 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=7 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=8 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=9 ttl=51 time=11.7 ms
64 bytes from 111.13.100.91 (111.13.100.91): icmp_seq=10 ttl=51 time=11.7 ms--- www.a.shifen.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 1156ms
rtt min/avg/max/mdev = 11.671/11.752/11.870/0.147 ms

参数 -f 洪水泛洪

root@ubuntu17:~# ping -f -c 100 www.baidu.com
PING www.a.shifen.com (111.13.100.92) 56(84) bytes of data.--- www.a.shifen.com ping statistics ---
100 packets transmitted, 100 received, 0% packet loss, time 1584ms
rtt min/avg/max/mdev = 17.319/17.899/19.847/0.313 ms, pipe 2, ipg/ewma 16.000/17.831 ms

转载于:https://blog.51cto.com/652465/2107082

N1网络命令-ping相关推荐

  1. linux常用网络命令ping和arping

    linux常用网络命令ping和arping ping 向目标主机发送icmp请求包 常用来测试当前主机与目标主机网络连接状况 常见选项 -c              设置发包的个数 -s      ...

  2. linux环境下常用的网络命令ping、telnet、traceroute、tcpdump

    文章目录 前言 网络 网络命令 ping telnet nc traceroute tcpdump 总结 前言 因特网(Internet)的前身是美国国防部高级研究计划局(ARPA)用于军事目的的通信 ...

  3. cmd长ping记录日志和时间_四个网络命令ping、arp、tracert、route的详细用法

    网络相关的从业人员,都需要面对检测和解决网络故障的各种问题,实际案例中因为网络导致的故障也是最多的,今天我们和大家一起来学习一下解决网络故障时使用最多的四个网络命令.希望对大家以后的实际工作中的故障排 ...

  4. route 不同路由器 windows_常用网络命令ping、arp、tracert、route详细用法,新手进阶必看...

    网络相关的从业人员,都需要面对检测和解决网络故障的各种问题,实际案例中因为网络导致的故障也是最多的,今天我们和大家一起来学习一下解决网络故障时使用最多的四个网络命令.希望对大家以后的实际工作中的故障排 ...

  5. 计算机基本网络命令大全,常用网络命令---ping命令详解

    .ping命令 ping是个使用频率极高的实用程序,主要用于确定网络的连通性.这对确定网络是否正确连接,以及网络连接的状况十分有用.简单的说,ping就是一个测试程序,如果ping运行正确,大体上就可 ...

  6. 常见的几种网络命令 { ping、ipconfig、arp、tracert、route、nslookup、nbtstat、netstat、net }

    常见网络命令 1.ping 格式 检查网络故障的工作步骤 2.ipconfig 常用格式 3.arp 具体格式有一下几种: 4.tracert 5.route 常用选项 6.nslookup 格式 7 ...

  7. 几种网络命令 { ping、ipconfig、arp、tracert、route、nslookup、nbtstat、netstat、net }

    常见网络命令 1.ping 格式 检查网络故障的工作步骤 2.ipconfig 常用格式 3.arp 具体格式有一下几种: 4.tracert 5.route 常用选项 6.nslookup 格式 7 ...

  8. 八个常用的网络命令ping、Telnet等详细方法介绍

    一,ping 它是用来检查网络是否通畅或者网络连接速度的命令.它所利用的原理是这样的:网络上的机器都有唯一确定的IP地址,我们给目标IP地址发送一个数据包,对方就要返回一个同样大小的数据包,根据返回的 ...

  9. linux网络命令--ping

    一.简介 1.定义 PING (Packet Internet Grope),因特网包探索器 2.功能 ping命令通过ICMP(Internet控制消息协议)工作:ping可以用来测试本机与目标主机 ...

  10. Windows学习总结(21)——常用网络命令ping、Telnet等详解

    一,ping 它是用来检查网络是否通畅或者网络连接速度的命令.它所利用的原理是这样的:网络上的机器都有唯一确定的IP地址,我们给目标IP地址发送一个数据包,对方就要返回一个同样大小的数据包,根据返回的 ...

最新文章

  1. Linux进程休眠和唤醒
  2. boost::mp11::mp_count相关用法的测试程序
  3. 【树链剖分】Milk Visits G(luogu 5838)
  4. Javascript基础(二)
  5. MS“未与信任SQL Server连接相关联”跟在使用ASP.NET网站管理工具出现“遇到错误。请返回上一页并重试。”的解决办法!...
  6. 谷歌浏览器添加.crx插件
  7. PAT1004. 成绩排名
  8. SQL Server 2012新功能
  9. poj 2741 Colored Cubes(dfs暴力枚举)
  10. Apache Hive 下载与安装
  11. 时频分析matlab实例,Matlab时频分析工具箱及仿真案例
  12. mac appium环境搭建
  13. VS 2017安装教程
  14. 为什么Jmeter 运行时时到达持续时间不停止?
  15. Laravel symlink() has been disabled for security reasons
  16. 还在搞三层架构?了解下 DDD 分层架构的三种模式吧
  17. Go语言实战之数组的内部实现和基础功能
  18. chi2inv函数 matlab_matlab函数与指令大全 a——h (转载)
  19. SecureCRT显示乱码的解决办法(centos)
  20. 不同速度的蚂蚁跑圈相遇问题

热门文章

  1. BaseAdapter使用的三种形式,逗比式,普通式,文艺式
  2. 如何调整标题字体大小_如何将【双代号网络图】调整清晰美观
  3. python3 主函数_Python3---常见函数---if __name__ == __main__
  4. 第四天:使用 session cookie redis完善登录验证及登录路由
  5. c#-多线程中lock用法的经典实例
  6. 类似构建的操作性工作,可以轮流值班
  7. 2020-11-16梦笔记
  8. 测试webRTC时浏览器机器一定要有摄像头
  9. 成功的人不是最聪明的那个人,但绝对是一个交流很棒的人
  10. C++中清理map的代码