Project

General

Profile

Actions

Bug #15452

open

Unexpected/Undefined behaviour of disabled interfaces

Added by Steve Wheeler 7 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Interfaces
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.7.2
Affected Architecture:
All

Description

Interfaces that are assigned but disabled can produce unexpected behaviour.

Setting an interface to disabled when it was previously enabled will set the interface as down or remove it entirely for sub-interface types.
That happens even if other interfaces are using it as a parent creating unexpected failures such as:
https://redmine.pfsense.org/issues/9453

However an interface assigned but disabled will still be brought up or created at boot.
More confusing is that parameters set on the disabled interface will still be set on it at boot.

Some users are using that behaviour to set parameters such as the MTU on a VLAN parent which works but brings down all the sub-interfaces until reboot.
There is no input error checking to prevent it.
My own understanding here is that an interface should be assigned an d enabled in order to apply config to it but the expected behaviour seems to be undefined.

We looked at this before here: https://redmine.pfsense.org/issues/11091
Nothing ended up from that after hitting more problems than it solved.

To resolve this either:
  • Interface config should not be applied to disabled interfaces at any time. Any users using this behaviour will need to enable those interfaces.
  • Saving an interface config that is already disabled should not kill the interface. But it would need to apply new parameters.

Related issues

Related to Bug #9453: Reconfiguring a parent LAGG interface breaks its VLANsResolvedMarcos M04/04/2019

Actions
Actions

Also available in: Atom PDF