Re: Updating network file during boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 15, 2024 at 7:15 PM Henti Smith <henti@xxxxxxxxxxxxxxxxx> 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




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux