Linux入门之使用 ping 命令检测主机是否激活

文档:Ping command basics for testing and troubleshooting | Enable Sysadmin

ping(8) - Linux manual page

1.简介

ping 命令向网络主机发送 ICMP ECHO_REQUEST

从主机或网关引出 ICMP ECHO_RESPONSE。

ECHO_REQUEST 数据报有一个 IP 和 ICMP 报头,后跟一个struct timeval,

命令格式如下:

ping [-aAbBdDfhLnOqrRUvV46] [-c count] [-F flowlabel]
            [-i interval] [-I interface] [-l preload] [-m mark]
            [-M pmtudisc_option] [-N nodeinfo_option] [-w deadline]
            [-W timeout] [-p pattern] [-Q tos] [-s packetsize]
            [-S sndbuf] [-t ttl] [-T timestamp option] [hop...]
            {destination}

2.检测主机

<

猜你喜欢

转载自blog.csdn.net/qq_27868061/article/details/126819472