opnsense / dhcp6c

OPNsense WIDE-DHCPv6 client
Other
23 stars 30 forks source link

Parsing configuration failed at startup if request is tracked by a bridged interface #7

Closed tduboys closed 5 years ago

tduboys commented 5 years ago

Hi,

I'm using OPNSense following this setup : https://wiki.opnsense.org/manual/how-tos/orange_fr_fttp.html

My box is set up as :

On startup, dhcp6c client parses the config file and see that my LAN interface (bridge0) is tracking the WAN interface to get IPv6 configuration, but bridge0 is not set up at this moment, so the config fails and dhcp6c didnt start.

Jan  8 20:19:12 opnsense dhcp6c[38999]: /var/etc/dhcp6c_wan.conf:13 invalid interface (bridge0): Device not configured
Jan  8 20:19:12 opnsense dhcp6c[38999]: called
Jan  8 20:19:12 opnsense dhcp6c[38999]: failed to parse configuration file

I need to force a dhcp refresh after startup to get IPv6

How to reproduce :


- reboot
- see logs

What expected : 
- no errors during boot, ipv6 working directly
marjohn56 commented 5 years ago

Odd, I use a bridge interface on my test unit, never have any issues, but Ill double check it. This is not really an issue with dhcp6 itself but the core routines that generate the config files.

tduboys commented 5 years ago

Odd, I use a bridge interface on my test unit, never have any issues, but Ill double check it. This is not really an issue with dhcp6 itself but the core routines that generate the config files.

Hi, I suppose that it's not really on dhcp6c but I dont really know where to talk about. Probably the resolution should be to delay the start of dhcp6c after all bridges. If you know where is the good place to discuss about that ? :)

marjohn56 commented 5 years ago

Try https://github.com/opnsense/core/issues

fichtner commented 5 years ago

So question is this: radvd.conf has an option IgnoreIfMissing -- we could implement something like this in dhcp6c instead of rearranging a lot of core code. Or we close this and focus on #3199, which is probably the better approach in the long run.

marjohn56 commented 5 years ago

Cannot answer that as I am on my hols..I'll think about it whilst I am sipping on a cold beer by the pool.

fichtner commented 5 years ago

@marjohn56 please do enjoy 👍

marjohn56 commented 5 years ago

I will try but it will be difficult...

fichtner commented 5 years ago

Going for a core fix...