Devices lose default ipv6 route after DHCP advertised lifetime

finally, i reuse 17.01.6 with the same configuration, problem “solved”


my isp provide ipv6 var SLAAC

recently my win10 PCs often lose the default route (::/0) after the advertised router lifetime (1800s)

so i add a scheduled task "*/20 * * * * /etc/init.d/odhcpd restart" in my router (openwrt 18.06.2 x86), or i have to re-add the default route for each device (sometimes it does not work)

it seems to make the situation better but not solve the problem completely

i hope to get a real solution, thanks

my dhcp configuration:

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option ra_management '1'
	option ra 'relay'
	option dhcpv6 'relay'
	option ndp 'relay'
	option ra_default '1'

config dhcp 'wan'
	option interface 'wan'
	option ignore '1'

config odhcpd 'odhcpd'
	option maindhcp '0'
	option leasefile '/tmp/hosts/odhcpd'
	option leasetrigger '/usr/sbin/odhcpd-update'
	option loglevel '4'

config dhcp 'wan6'
	option interface 'wan'
	option ra 'relay'
	option dhcpv6 'relay'
	option ndp 'relay'
	option master '1'

https://openwrt.org/docs/guide-user/network/ipv6/start#router_advertisement_dhcpv6

Your configuration is different than the one in user guide. Can you try to match them and try again?

1 Like