Usage:ping[-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline] [-W timeout] [hop1 ...] destination 二、ping参数详...
这意味着,在Linux中,如果指定了-I参数,那source ip可以是一个接口名,比如en0。 2.2-c -c count Stop after sending count ECHO_REQUEST packets. With deadline option, ping waitsforcount ECHO_REPLY packets,untilthe timeout expires. Linux 中的 -c 参数使用方法 翻译: -c count 发送完 count 个 ECHO...
* -4:使用IPv4。 此外,还有其他参数如-A、-b、-B、-c count、-i interval、-I interface、-m mark、-M pmtudisc_option、-l preload、-p pattern、-Q tos、-s packetsize、-S sndbuf、-t ttl、-T timestamp_option、-w deadline和-W timeout等,这些参数可以用来设置ping命令的各种选项和参数。©...
This option can be used to ping a local host through an interface that has no route through it provided the option -I is also used. 绕过正常路由表,直接发送到连接的主机。 如果主机不在直接连接的网络上,则返回错误。 使用选项-I可以通过没有路由的接口ping本地主机。 -s packetsize Specifies the ...
1 2 3 4Usage: ping[-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface] [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option][-w deadline] [-W timeout] [hop1 ...] destinatio...
ping [option] destination “` 其中,option是可选的,可用于指定ping命令的参数;destination是目标主机的IP地址或域名。 以下是一些常用的ping命令参数: –-c:指定发送的报文数量,默认为无限次发送; –-i:指定发送报文的间隔时间,默认为1秒; –-s:指定发送的报文大小,默认为56字节; ...
1#ping--help2ping: invalid option --'-'3Usage:ping[-aAbBdDfhLnOqrRUvV64] [-c count] [-i interval] [-I interface]4[-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]5[-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]6[-wdeadline] [-W time...
- -i interval:设置两次ping之间的时间间隔(以毫秒为单位)。 - -I interface:指定要使用的网络接口。 - -m mark:在数据包中添加一个标记。 - -M pmtudisc_option:指定路径MTU发现选项。 - -l preload:在启动时预先加载路由表。 - -p pattern:只回应符合给定模式的响应数据包。 - -Q tos:设置TOS字段的...
ping [-aAbBdDfhLnOqrRUvV46] [-c count] [-F flowlabel] [-i interval] [-I interface] [-l preload] [-m mark] [-M pmtudisc_option] [-N nodeinfo_option] [-w deadline] [-W time‐out] [-p pattern] [-Q tos] [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp option]...
For IPv6, when doing ping to a link-local scope address, link specification (by the '%'-notation in destination, or by this option) is required. 代码语言:javascript 代码运行次数:0 运行 AI代码解释 ➜ Desktop ping -I wlp3s0 baidu.com PING baidu.com (123.125.115.110) from 10.210.10.160...