linux怎么pingipv6地址

ipv6代理测试

首先保证自己已经在ipv6环境里,在Linux下,通过以下命令ping ipv6地址,注意,不是ping,是ping6 了

# ping6 ipv6.google.com
PING ipv6.google.com(lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e)) 56 data bytes
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=1 ttl=119 time=0.373 ms
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=2 ttl=119 time=0.404 ms
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=3 ttl=119 time=0.403 ms

那么ping不能用了么?当然不是,以下是ping命令,带一个参数-6 就可以了。

# ping -6 ipv6.google.com
PING ipv6.google.com(lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e)) 56 data bytes
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=1 ttl=119 time=0.440 ms
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=2 ttl=119 time=0.409 ms
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=3 ttl=119 time=0.785 ms
64 bytes from lax28s10-in-x0e.1e100.net (2607:f8b0:4007:80d::200e): icmp_seq=4 ttl=119 time=0.444 ms

网络联通了以后,可以用 https://ipv6proxy.cn 在ipv4环境下测试ipv6网址内容。