admin 管理员组

文章数量: 887021

ping, ping6 (icmp, icmpv6)

选项:

I interface address

              Set source address to specified interface address. Argument may be numeric IP address or name of  device.  When  pinging  IPv6
              link-local address this option is required.  如果ping6则必须设置。



举例:

ping6 -I eth2 fe80::20c:29ff:fe0f:aa4a

PING fe80::20c:29ff:fe0f:aa4a(fe80::20c:29ff:fe0f:aa4a) from fe80::20c:29ff:fe0f:aa4a eth2: 56 data bytes

64 bytes from fe80::20c:29ff:fe0f:aa4a: icmp_seq=1 ttl=64 time=0.061 ms

64 bytes from fe80::20c:29ff:fe0f:aa4a: icmp_seq=2 ttl=64 time=0.006 ms


ping6 ::1
PING ::1(::1) 56 data bytes

64 bytes from ::1: icmp_seq=0 ttl=64 time=0.021 ms


wireshark用icmpv6过滤查看。

本文标签: ping ping6 (icmp icmpv6)