
相似主题: t/837232
参考设置: https://post.smzdm.com/p/awzodmpp/?sort_tab=hot%2525252F
网络环境: 光猫拨号, 路由器中继
操作过程:
按照上面的帖子, 设置好了防火墙-通讯规则: udp 456 端口 ipv6 入站, ipv6 imgr 协议入站
大概一个星期, wan6 接口上的 ipv6pd 消失了, 路由器下的设备当然就没有公网 ipv6 了,web 页面手动重启 wan6 又成功获取到了
暂时不清楚是什么原因,有没有大佬讲解下
目前的处理方法,待验证是否生效:
touch /etc/hotplug.d/ifac-e/99custom-script chmod +x /etc/hotplug.d/ifac-e/99custom-script vim /etc/hotplug.d/ifac-e/99custom-script === #!/bin/sh /root/check_ipv6pd.sh === #!/bin/sh # 检查 wan 接口的 IPv6-PD 状态 if ! ip -6 addr show dev br-lan | grep -q "global"; then echo "br-lan 接口没有获取到 IPv6 ,正在重启 wan 接口..." # 重启 wan 接口 ifdown wan sleep 5 ifup wan else echo "br-lan 接口正常,已获取到 IPv6 。"