Feature #9393
closed
Improved support for USB interfaces that may not always be present
Added by Xhivat Hoxhiq over 5 years ago.
Updated over 2 years ago.
Plus Target Version:
22.05
Description
Currently if you have a USB 4g modem or any other removable interface you need to manually delete it or otherwise you get an interface mismatch upon reboot. Would be awesome to have the option to match that interface to that specific device, and if it is missing during boot delete/disable it. If it gets plugged in while booted, it will detect that specific device and create/enable the same interface again.
- Status changed from New to Pull Request Review
- Target version set to CE-Next
- Plus Target Version set to 22.05
- Assignee set to Viktor Gurov
- Status changed from Pull Request Review to Feedback
- Target version changed from CE-Next to 2.7.0
- % Done changed from 0 to 100
- Subject changed from Better Support for Removable/Hot Plug Interfaces to Improved support for USB interfaces that may not always be present
Updating subject for release notes.
Tested on 22.05.a.20220429.1807 by adding USB NIC, enabling it and setting a static IP. Rebooted system and removed USB interface before system posted. pfSense loaded and had assigned a different unused physical interface to the interface where the USB was previously associated. Upon plugging the USB back in the new interface now has changed back to using the USB for it's physical assignment.
- Status changed from Feedback to New
Jordan Greene wrote in #note-8:
Tested on 22.05.a.20220429.1807 by adding USB NIC, enabling it and setting a static IP. Rebooted system and removed USB interface before system posted. pfSense loaded and had assigned a different unused physical interface to the interface where the USB was previously associated. Upon plugging the USB back in the new interface now has changed back to using the USB for it's physical assignment.
Did it really change the assignment (Check Status > Interfaces, for example) or was it just missing from the drop-down on Interfaces > Assignments? That would be two very different problems. If it's missing from the drop-down list then the GUI appearance of it being a different interface is only cosmetic. If the actual assignment changed that would be a deeper issue that would break a lot more things.
Jordan Greene wrote in #note-8:
Tested on 22.05.a.20220429.1807 by adding USB NIC, enabling it and setting a static IP. Rebooted system and removed USB interface before system posted. pfSense loaded and had assigned a different unused physical interface to the interface where the USB was previously associated. Upon plugging the USB back in the new interface now has changed back to using the USB for it's physical assignment.
This is correct behavior - you can see a different unused physical interface on the interface assignment page, but correct value in config.xml.
Same issue if assign WiFi interface, and remove it on reboot.
- Status changed from New to Resolved
Seems to be working about as well as we can hope for here. Maybe in the future we can add dummy entries into the interface list for assignment for these kind of potentially-temporary interfaces.
Also available in: Atom
PDF