去年搞了个树莓派 3B+做的软路由,苦于一直没有 ipv6,于是写了个监控脚本,一旦 ip 地址发生变化就发邮件通知,今天凌晨 1 点多收到邮件,早上看了下,大惊,竟然有 ipv6 地址了,试了下 ping6 果然没问题,坐标北京房山区。 最后求玩法!!! root@raspberrypi:~# ping6 240C::6666 PING 240C::6666(240c::6666) 56 data bytes 64 bytes from 240c::6666: icmp_seq=1 ttl=53 time=31.6 ms 64 bytes from 240c::6666: icmp_seq=2 ttl=53 time=31.5 ms 64 bytes from 240c::6666: icmp_seq=3 ttl=53 time=31.9 ms 64 bytes from 240c::6666: icmp_seq=4 ttl=53 time=31.4 ms 64 bytes from 240c::6666: icmp_seq=5 ttl=53 time=31.6 ms 64 bytes from 240c::6666: icmp_seq=6 ttl=53 time=31.6 ms 64 bytes from 240c::6666: icmp_seq=7 ttl=53 time=32.3 ms 64 bytes from 240c::6666: icmp_seq=8 ttl=53 time=31.9 ms 64 bytes from 240c::6666: icmp_seq=9 ttl=53 time=31.6 ms