OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: ericdude101 on February 22, 2017, 12:24:11 am

Title: [SOLVED] Interface Configuration Loop
Post by: ericdude101 on February 22, 2017, 12:24:11 am
Hello,

Im trying to resolve an issue with a new installation, I was able to get everything installed and setup without issue EXCEPT:

I'm using a three NIC setup to have an out of band management port which I was able to configure and have work exactly as expected, but as soon as I reboot I see the message during boot that says "Default interfaces not found -- Running interface assignment option." which is totally automated and reset all my interface config and breaks my setup.

Is this a self-healing option I can simply disable or is this a software bug of some sort?
Title: Re: Interface Configuration Loop
Post by: franco on February 22, 2017, 07:19:41 am
If interfaces go away during boot, the system tries to recover into a good known state based on the interfaces that are present in the system.

Are you using a USB NIC? If the NIC takes too long to be visible or changes its name, there's a problem. There are scripting workarounds for this in the form of boot delays we could try.
Title: Re: Interface Configuration Loop
Post by: ericdude101 on February 22, 2017, 08:56:29 am
I did end up enabling a delay in the loader.config file which appears to have fixed it
Title: Re: Interface Configuration Loop
Post by: franco on February 22, 2017, 09:00:58 am
There's a plugin for that: os-boot-delay. /boot/loader.conf changes are not permanent. Either use the plugin (it has a fixed 10 seconds delay at this time) or edit /boot/loader.conf.local instead.


Cheers,
Franco
Title: Re: [SOLVED] Interface Configuration Loop
Post by: ericdude101 on February 24, 2017, 01:42:20 am
The file /boot/loader.conf.local doesn't exist. I actually enabled the delay in the file located at /boot/defaults/loader.conf
Title: Re: [SOLVED] Interface Configuration Loop
Post by: djGrrr on February 24, 2017, 05:38:08 pm
The file /boot/loader.conf.local doesn't exist. I actually enabled the delay in the file located at /boot/defaults/loader.conf


/boot/defaults/loader.conf is also not persistent, any changes will be lost in an upgrade.

Either create the file /boot/loader.conf.local and put the changes there, or install the os-boot-delay plugin as franco said.