您好,登錄后才能下訂單哦!
ping
參數(shù) -c 指定次數(shù)
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
參數(shù) -q 只看結(jié)果
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
參數(shù) -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
參數(shù) -t 指定生存時(shí)間
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
參數(shù) -i 指定ping的間隔時(shí)間
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
參數(shù) -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
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。