IPv6 communication test

1. View local IPv6

2. ping6 local

# ping6 2001......
64 bytes from 2001:... icmp_seq=1 ttl=64 time=0.058 ms
64 bytes from 2001:... icmp_seq=2 ttl=64 time=0.054 ms

3. Ping an IPv6 service on the public network to verify connectivity

# ping6 huawei.com
PING huawei.com(2407:c080:17ef:ffff::7274:d206 (2407:c080:17ef:ffff::7274:d206)) 56 data bytes
64 bytes from 2407:c080:17ef:ffff::7274:d206 (2407:c080:17ef:ffff::7274:d206): icmp_seq=1 ttl=13 time=108 ms
64 bytes from 2407:c080:17ef:ffff::7274:d206 (2407:c080:17ef:ffff::7274:d206): icmp_seq=4 ttl=13 time=117 ms
64 bytes from 2407:c080:17ef:ffff::7274:d206 (2407:c080:17ef:ffff::7274:d206): icmp_seq=6 ttl=13 time=116 ms
64 bytes from 2407:c080:17ef:ffff::7274:d206 (2407:c080:17ef:ffff::7274:d206): icmp_seq=7 ttl=13 time=109 ms

4. If there is no local IPv6 address, the ping will not work.

╰─➤  ping6 huawei.com                                                                                                                                                              130 ↵
ping6: UDP connect: No route to host

Guess you like

Origin blog.csdn.net/u010953692/article/details/131331884