Come up automatically the interface without reboot (hotplug)

I assigned a specific name to my interface based on its MAC address (xx:xx:xx:xx:xx:xx) in the file /etc/udev/rules.d/70-persistent-rules:

SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="xx:xx:xx:xx:xx:xx", NAME="YYY"

After rebooting IPFire, the interface named “YYY” appears as expected. I would like this interface to be recognized as “allow-hotplug,” meaning it should be recognized automatically without the need for a reboot every time it’s disconnected. How can I achieve this?

You can obviously have the udev rule launch some scripts that restart the network, but generally the network code doesn’t support hotplugging.

2 Likes