本帖最后由 traving_chen 于 2018-12-8 01:32 编辑
测试了下脚本,工作正常,可以自动跟新阿里云的域名解析地址为HA 设备的IPv6地址,感谢分享。我的树莓派直接用wifi连接移动的光猫,可以获取IPv6地址。
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.5 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 2409:8a55:d013:4a60:6acf:d733:38e3:b291 prefixlen 64 scopeid 0x0<global>
inet6 fe80::814:51f4:5763:1da prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:b4:1f:c1 txqueuelen 1000 (Ethernet)
RX packets 12706 bytes 3642611 (3.4 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 17543 bytes 5677915 (5.4 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|