-
Notifications
You must be signed in to change notification settings - Fork 702
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing configuration failed at startup between bridge and dhcp6c on WAN #3199
Comments
Are you still having this issue? |
Hi, |
Can you send me your config.xml file, I'll take a look and see what gives. |
The thing that confuses me is that you say bridge0 is not setup, yet the configuration is finding an interface called bridge0 - You must have entered that somewhere. |
I just updated to 19.1.2 but nothing changed. |
dropbox or martin@team-rebellion.net or you can attach it here |
Sent by mail.
|
So you have a bridge declared then,.. If you are not using a bridge then delete it, |
I need to bridge 2 interfaces for my LAN, and some times 3 interfaces, it's why I've choosen a hardware with multiple interfaces. |
I use a bridge interface on both of my Qotoms I have zero issues with dhcp6c so it's a config error. Config file please. |
It's on your mail |
Not received here. Push it to dropbox and send me a link. |
Could you also send the dhcp6c conf file when the error happens. We have seen an issue with OR France when using RAW options, and I wonder if its that thats causing an issue. |
@marjohn56 link for my config file : https://dl.plik.ovh/file/scPayUvR7BADuU9x/nMn0eN3q9y1250eu/config.xml (temporary link) About dhcp6c config file, there is mine :
The raw options worked great, but only if I reload interface (or all services) after a reboot. |
Yes, Think it's the same issue we are having here: https://github.com/opnsense/core/issues/2774#issuecomment-469763514 |
Odd... very odd. I have just tested this - using RAW options and I cannot break it. I must have tested it thirty or more times with no issues. Gets a v6 address straight from boot, I can neither emulate your issue or the other one with dhcp6c. Can you try sending your config.xml to me again. Check you have the correct address martin@team-rebellion.net |
OK, I've been able to replicate this and sure enough the bridge interface is not ready for dhcp6c when it tries to add an address, thus causing dhcp6c to fail and exit. I have sent Thomas a workaround for testing and we'll see where we go from there. What's happening is during boot dhcp6c gets run too early so I have moved it the call to fire it up and that seems to cure it, however it needs much testing as it may break something else! @fichtner - FYI |
Hi all, I suppose that the sentence during boot is something like that :
In my case, the first interface igb0 is the wan with dhcp6c client But here, the script for wan need to have the bridge already set up. I tried this thing just for test :
I suppose that a better fix should be to create bridge interfaces before others (like for lagg and vlans, it seems) In this code in interfaces.inc :
If I understand, it creates the bridge only when the first interface of this bridge is set up. I will try some things here (and maybe break all my system :) ) |
This isn't meant as a fix. Need to find out what this code really does...
@tduboys Okay, I'm classifying this as bug now after a deep-dive into the code. The reason for that is that handling for track6,bridge, delayed items is completely out of whack... 561a783 works for me, but is merely meant as a base for further work. I'm not sure if it will be in 19.1.x or wait for 19.7 to shine. Nevertheless you can try it via:
|
Thanks @fichtner I will try this patch. Currently, I'm using my old patch. I will revert it and let you know if all worked. BTW I didnt know the opnsense-patch command :) |
both opnsense-patch and opnsense-revert are handy sometimes :) I'm not 100% satisfied with the current state but it seems to work well enough to cover your use case without fuzz. |
Hi @fichtner , I confirm that your patch is working great for my case. |
I had to rewrite a larger portion of that function and I'm ok with the new state. Would you be able to try the development version of 19.1.7 to confirm this is also working fine for you? |
I just updated to the last 19.1.7 stable version plus your patch, but I'm ok to test the dev version. |
No need to roll back, just switch to dev, save, check for updates and hit upgrade |
I just switched to dev, updated and rebooted. I got an IPv6, fix seems worked. |
@tduboys ok great. so the last question would be shipping a fix when... are you ok with reapplying the patch for all 19.1.x updates because I would like to leave the real rework on the development track for 19.7. What do you think? |
Yes, no problem to manually apply the patch for 19.1.x branch. It's probably safer that not changing this part in a « small » update. |
Ok thanks, you will have to do it for every update you perform since patches aren't sticky (they are a test tool after all), but then I can close the issue now and test further to make sure 19.7 is as good as it gets. :) Thank you, |
This isn't meant as a fix. Need to find out what this code really does...
This isn't meant as a fix. Need to find out what this code really does...
There is an equivalent bug report in pfsense tracker: https://redmine.pfsense.org/issues/3965 |
This was solved a long time ago? |
Hi all,
Following opnsense/dhcp6c#7, I've an issue that is probably not on the dhcp6c client but maybe on config testers during boot sequence.
I'm using OPNSense following this setup : https://wiki.opnsense.org/manual/how-tos/orange_fr_fttp.html
My box is set up as :
I'm using a QOTOM hardware with 6x Intel interfaces.
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.
I need to force a dhcp refresh by saving the WAN page settings and click on « apply », on each startup, to get IPv6 working correctly.
How to reproduce :
What expected :
I had this issue on 1.8.7 and also after upgrading to 1.9.1
The text was updated successfully, but these errors were encountered: