Feature #593
closedPreserve interface assignments based on last MAC address (possibly optionally)
0%
Description
Some have requested to have the ability to automatically detect when the name of an interface has changed, based on the MAC address, and change the name in the configuration to match if necessary (particularly for USB devices). This could be optional, but there may be no harm in always doing it every boot without needing to be enabled by some option.
This shouldn't be too difficult to implement, but it needs to be performed early enough at boot and needs to handle every setting that uses the actual interface names.
Updated by Erik Fonnesbeck over 14 years ago
One thing to watch out for if this is implemented is that the MAC address can probably only be reliably determined at boot, since it does not seem possible to determine the old MAC address on an interface after overriding, as far as I know.
Updated by Ermal Luçi over 14 years ago
Please do not do such thing since you will break pfSense in big blows.
VLANs share the same mac and so do the clones on wireless and possibly other devices do this too.
cloned interfaces might not have a mac address at all so you have to find different method to identify them.
For USB you can use the bus id and number to identify them.
Updated by Erik Fonnesbeck over 14 years ago
If I even implement this myself, I do not intend to do it anytime soon (which is why I set no target version). My intention was just to mention various ideas.
Whatever way it would be identified, by MAC address or anything else, it would need to distinguish between the actual interface and virtual interfaces in some way, even renaming some virtual interfaces in the configuration where necessary. It would also need to change the configuration for any virtual interfaces that are using the real name of the interface in the configuration file.