美文网首页程序员
linux命令 - ping

linux命令 - ping

作者: 村长225 | 来源:发表于2018-07-30 18:54 被阅读23次

功能

send ICMP ECHO_REQUEST packets to network hosts
向目标网络主机发送"ICMP ECHO_REQUEST"包

备注:ping命令通常用来测试到目标主机的网络是否畅通

用法

  • ping hostname - ping主机名
$ ping baidu.com
PING baidu.com (123.125.115.110): 56 data bytes
64 bytes from 123.125.115.110: icmp_seq=0 ttl=48 time=100.988 ms
64 bytes from 123.125.115.110: icmp_seq=1 ttl=48 time=46.486 ms
64 bytes from 123.125.115.110: icmp_seq=2 ttl=48 time=60.061 ms
64 bytes from 123.125.115.110: icmp_seq=3 ttl=48 time=38.893 ms
64 bytes from 123.125.115.110: icmp_seq=4 ttl=48 time=121.215 ms
^C
--- baidu.com ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 38.893/73.529/121.215/32.063 ms
  • ping ipaddress - pingIP地址
$ ping 123.125.115.110
PING 123.125.115.110 (123.125.115.110): 56 data bytes
64 bytes from 123.125.115.110: icmp_seq=0 ttl=48 time=63.767 ms
64 bytes from 123.125.115.110: icmp_seq=1 ttl=48 time=41.673 ms
64 bytes from 123.125.115.110: icmp_seq=2 ttl=48 time=33.730 ms
64 bytes from 123.125.115.110: icmp_seq=3 ttl=48 time=34.149 ms
64 bytes from 123.125.115.110: icmp_seq=4 ttl=48 time=96.654 ms
^C
--- 123.125.115.110 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 33.730/53.995/96.654/23.965 ms

相关文章

  • ping 包长度及 MTU

    ping 命令是测试网络是否连通最常用的命令,而无论是 Windows 还是 Linux,ping 命令都可以指定...

  • Android中调用Ping操作及结果分析

    实现方法 android中调用ping命令需要使用Linux底层的命令: ping -c 1 -w 10 ip 其...

  • 内网渗透笔记[持续更新]

    主机发现命令 (需要 ping 命令) Windows Linux 端口扫描 (需要 nc 命令) Windows...

  • Linux入门必备命令

    简介 Linux中常用的命令介绍 命令格式 必备命令 cd pwd ls ping ipconfig

  • linux命令 - ping

    功能 send ICMP ECHO_REQUEST packets to network hosts向目标网络主机...

  • linux 网络通信命令

    linux的ping命令和windows的不一样,windows的ping四次就自动终止了,linux是不会终止的...

  • day36-Git的使用

    一、Linux命令 1.Linux中网络相关的命令 1.ping -> 检测网络可达性 -> ICMP 2.tra...

  • 玩转「Wi-Fi」系列之常用命令

    涉及到网络相关的命令很多,一些常用命令如下: Ping Ping是Linux系统常用的网络命令,它通常用来测试与目...

  • ping命令

    Linux系统的ping命令是常用的网络命令,它通常用来测试与目标主机的连通性,我们经常会说“ping一...

  • Linux / Unix SSH,Ping,FTP,Telnet

    Linux / Unix SSH,Ping,FTP,Telnet通信命令 在Linux操作系统上工作时,您可能需要...

网友评论

    本文标题:linux命令 - ping

    本文链接:https://www.haomeiwen.com/subject/clfqvftx.html