Interfaces set as disabled in the configuration have an UP status in the operating system at boot
If you disable interface on interfaces.php page it's disabled
there is no UP in ifconfig output and `get_interface_info()` returns 'status' = 'down', 'enable' = 'false'
but after system reboot interface status is UP in ifconfig output and `get_interface_info()` returns 'status' = 'up', 'enable' = 'false', which is incorrect
it seems `interfaces_configure()` doesn't disable interfaces on boot
Down disabled interfaces on boot. Fixes #11091
(cherry picked from commit 9115501d6ab5197d9caf499e90779c020d711dca)
Revert changes for issue #11091
Negatively impacts parent interfaces, needs more work.
#7 Updated by Alhusein Zawi 3 months ago
After reboot the interface is not UP in ipconfig
[2.5.1-RC][admin@pfSense.home.arpa]/root: ifconfig em2
em2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
built on Thu Mar 11 09:11:02 EST 2021
#10 Updated by Jim Pingle 3 months ago
- Status changed from Resolved to In Progress
I think this may need some refinement as it could interfere with other things. If you have an interface assigned but disabled and use that interface as a parent for other things, the children will be affected.
For example if lagg0 is assigned and enabled, and you have VLAN children on lagg0, this takes out the VLAN children.
I think we should back this out of 2.5.1/21.02.2 and work on it more in master for the next release.
#14 Updated by Viktor Gurov about 1 month ago
Steve Wheeler wrote:
Confirmed; this breaks sub-interfaces on anything that is assigned but disabled by removing the parent entirely.