[systemd-devel] Updating network file during boot
Andrei Borzenkov
arvidjaar at gmail.com
Fri Aug 16 06:31:00 UTC 2024
On Thu, Aug 15, 2024 at 7:15 PM Henti Smith <henti at gaydonsmith.co.uk> wrote:
...
>
> The full device list (when configured correctly) is:
> E: DEVPATH=/devices/pci0000:00/0000:00:0c.0/0000:01:00.0/net/eno1
> E: DEVPATH=/devices/pci0000:00/0000:00:0d.0/0000:02:00.0/net/eth1
> E: DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/mvc-sw1
> E: DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/mvc-sw2
>
...
>
> At the end of the day I need to be able to reliably identify the last two ethernet devices and name them correctly regardless of whether the additional PCI hotplug board is attached or not.
echo 'SUBSYSTEM=="net", KERNELS=="0000:00:10.0", NAME="mvc-sw1"' >
/etc/udev/rules.d/mvc.rules
echo 'SUBSYSTEM=="net", KERNELS=="0000:00:11.0", NAME="mvc-sw2"' >>
/etc/udev/rules.d/mvc.rules
More information about the systemd-devel
mailing list