Superior device changed IPV6 PD every 10 days

My home network topology is Modem - openwrt router - computer

Then the Modem issued the IPv6 PD

However, Modem will replace the PD every 10 days. At this time, openwrt will not replace the PD immediately, but will replace it after 12 hours(the end of DHCP time).
As a result, the computer's IPv6 cannot access the Internet during the 12 hours

At this time, you can only restart the router manually

Can I add a judgment on the openwrt router to detect that the PD issued by the superior device has been replaced and openwrt will be updated immediately

我家里的网络是拓扑是 光猫-openwrt路由器-电脑
然后光猫下发了IPV6的PD
但是光猫会每10天更换PD,然后这个时候openwrt并不会立刻更换PD,而是会在12小时以后才更换(DHCP时间结束),这就导致在这12个小时的时间里面电脑的IPV6是无法访问外网的
这个时候只能手动重启路由器才能解决

请问能否在openwrt路由器上面加一个判断,检测到上级设备下发的PD更换了OPENWRT就立刻更新

cat << "EOF" > /etc/odhcp6c.user
/etc/init.d/odhcpd restart
EOF

https://openwrt.org/docs/guide-user/network/protocol.dhcp#dhcp_client_scripts

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.