现在ipv6使用越来越多了,那怎么ping ipv6的地址呢
win中
win中可以在cmd窗口中使用ping -6 [ipv6 地址]
来ping ipv6的地址。
如:ipv6的地址为 aliyun.com
C:\Users\Administrator>ping -6 aliyun.com
正在 Ping aliyun.com [2401:b180:1:60::6] 具有 32 字节的数据:
来自 2401:b180:1:60::6 的回复: 时间=12ms
来自 2401:b180:1:60::6 的回复: 时间=12ms
来自 2401:b180:1:60::6 的回复: 时间=12ms
来自 2401:b180:1:60::6 的回复: 时间=12ms
Mac中
先使用ifconfig查看网卡ID。然后使用 ping6 -I [网卡ID] [ipv6地址]
。
如:这里的网卡为eth0
,ipv6的地址为 aliyun.com
,这里的网卡ID是可选的
[root@zngw ~]# ping6 -I eth0 aliyun.com
PING aliyun.com(2401:b180:1:60::6 (2401:b180:1:60::6)) from 2408:4005:384:9d37:e80b:3be2:52da:a70e eth0: 56 data bytes
64 bytes from 2401:b180:1:60::6 (2401:b180:1:60::6): icmp_seq=1 ttl=96 time=9.01 ms
64 bytes from 2401:b180:1:60::6 (2401:b180:1:60::6): icmp_seq=2 ttl=96 time=8.97 ms
64 bytes from 2401:b180:1:60::6 (2401:b180:1:60::6): icmp_seq=3 ttl=96 time=8.97 ms
64 bytes from 2401:b180:1:60::6 (2401:b180:1:60::6): icmp_seq=4 ttl=96 time=8.92 ms
linux中
在Linux中,和mac和win中的二种方法都可以使用。