The solution is to suppress this but how can it be properly solved if you don't have an actual ISP with IPv6 capabilities as I do? Can I just go to Network > Interfaces > and delete wan6?
One of your interfaces still has it on. I just fixed this issue for myself yesterday.
Check both the "Interface" options on each interface and then go to the devices tab and check each device for having IPV6 disabled.
Once all interfaces / devices have it off it will go away. Other than knowing this information there isnt a current way to disable IPV6 globally in one click.
Actually, I just checked this morning and its back. Not happening nearly as much as before. Ill have to continue to see if I can find out what's happening.
Sat Nov 30 08:45:22 2024 daemon.warn odhcpd[1221]: No default route present, overriding ra_lifetime to 0!
It pointed me to the DHCP control file. /etc/config/dhcp
I manually removed the DHCPv6 entries. Im going to evaluate if this solves my issue, possibly yours too.
Even with IPV6 off the following entries were still being found,
Update:
Appears that edit didn't fix it either. I could probably go scorched earth and remove the DCHPv6 packages but that would be counter intuitive as IPV6 is growing rapidly in implementation, mostly with the cellular providers.
Now I'm trying putting the default IPV6 route back on the LAN interface. Its a private address and I removed it because I didn't want to hand out IPV6 anything internally. Ill continue to monitor and let you know if I find the fix for the log spam. Just note that these logs are not detrimental if you don't use IPV6 but they can bloat logging. Optionally you can change the log level so you dont see them anymore as well.
Its been about 15-20 min now with none of those logs anymore. So it appears that removing the "default" route in the Global Network Options for IPV6 might likely be the source of the problem. I mean looking at the logging it is complaining of missing a default route so this tracks.
I would think that this is likely a bug that can be fixed or a note put on the Global Network Options page notify the user that a default route must be populated if IPV6 packages are installed, even if disabled or not used.
If you do not have an ipv6 Internet feed, no, there is no performance issue. It is a warning (that there is no default route and the ra_lifetime is being overridden).
Setting ra_default='2' configures the override in advance.
What does '2' equal? I mean your fix seems very simple but just trying to understand why with IPV6 disabled this becomes an issue.
I feel like setting an arbitrary value might end up causing performance issues down the line since the ra_lifetime continues to function for no purpose.
I haven't looked into this but could we not just split v6 into its own service and just disable the service globally? Not sure if that's possible, just spitball ing, but I intend to look into this. Its been a LONG time since my Cisco classes.
The ability to completely disable IPv6 has been removed in a lot of areas. For example, IPv6 is built into the kernel (much like IPv4), and Linus Torvalds himself signed off on the commit to make such "disable IPv6" flags non functional.
Basically - you'll be rigging non-standard configs to make your device ignore, "disable" or "sidestep" IPv6.
I'm sure the other user can expound on the '2' setting.
Description of the setting for ra_default can be found in the dhcp documentation previously linked by @GWTechTalk
Extracted from there:
ra_default Default router lifetime in the RA message will be set if default route is present and a global IPv6 address (0) or if default route is present but no global IPv6 address (1) or neither of both conditions (2)
This is not suppressing an error. The message in the logs is a warning. Setting ra_default to "2" in the config (of odhcpd) removes the need for a warning.
Either way, I appear to be right about the log occurring when the Global Prefix variable is empty. Having a default in there prevents the log from occurring as well as @bluewavenet 's suggestion.
Blue's suggestion is likely the official way to fix this that I didn't understand. Would be conducive to new users to have this option by default set to '2' when your DHCPv6 server is disabled.
I would think it could be possible to have a secondary command on disabling the IPV6 on the primary DHCP interface or bridge to set this value preventing confusion. But I'm thinking more like a home consumer and not that of an enterprise of which might have use for a config such as this?