On Thu, Oct 24, 2024 at 6:29 PM Henti Smith <henti@xxxxxxxxxxxxxxxxx> wrote: > > Good day everybody > > I have two link files for mvc-sw1 and mvc-sw2. > > # mvc-sw1 > ``` > # Fixed MAC and name for eno2 (Switch 1 connection) when debug board is plugged in > # Renamed to mvc-sw1 by PCI Address and set custom MAC address. > [Match] > Property=DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/eno2 > > [Link] > MACAddress=02:00:00:00:05:00 > Name=mvc-sw1 > ``` > > # mvc-sw2 > ``` > # Fixed MAC and name for enp6s0 (Block Diagram) when debug board is plugged in > # Renamed to mvc-sw2 by PCI Address and set custom MAC address. > [Match] > Property=DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/enp6s0 > These names are already the result of earlier renamoing. I am not sure systemd/udev/networkd will rename the second time. > [Link] > MACAddress=02:00:00:00:06:00 > Name=mvc-sw2 > ``` > > I update the initrd file and rebooted and the system comes up with eno2 and enp6s0 instead of the expected mvc-sw1 and mvc-sw1. > Looking at udevadm info I get the following > ``` > P: /devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/eno2 > L: 0 > E: DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/eno2 > E: INTERFACE=eno2 > E: IFINDEX=4 > E: SUBSYSTEM=net > E: USEC_INITIALIZED=8968404 > E: ID_NET_NAMING_SCHEME=v245 > E: ID_NET_NAME_ONBOARD=eno2 > E: ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller > E: ID_NET_NAME_PATH=enp5s0 > E: ID_BUS=pci > E: ID_VENDOR_ID=0x11ab > E: ID_MODEL_ID=0x0f13 > E: ID_PCI_CLASS_FROM_DATABASE=Network controller > E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller > E: ID_VENDOR_FROM_DATABASE=Marvell Technology Group Ltd. > E: ID_PATH=pci-0000:05:00.0 > E: ID_PATH_TAG=pci-0000_05_00_0 > E: ID_NET_DRIVER=oak > E: ID_NET_LINK_FILE=/etc/systemd/network/10-oxb-mvc-sw1-debug.link > E: ID_NET_NAME=eno2 > E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/eno2 /sys/subsystem/net/devices/eno2 > E: TAGS=:systemd: > ``` > > ``` > P: /devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/enp6s0 > L: 0 > E: DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/enp6s0 > E: INTERFACE=enp6s0 > E: IFINDEX=5 > E: SUBSYSTEM=net > E: USEC_INITIALIZED=8928106 > E: ID_NET_NAMING_SCHEME=v245 > E: ID_NET_NAME_PATH=enp6s0 > E: ID_BUS=pci > E: ID_VENDOR_ID=0x11ab > E: ID_MODEL_ID=0x0f13 > E: ID_PCI_CLASS_FROM_DATABASE=Network controller > E: ID_PCI_SUBCLASS_FROM_DATABASE=Ethernet controller > E: ID_VENDOR_FROM_DATABASE=Marvell Technology Group Ltd. > E: ID_PATH=pci-0000:06:00.0 > E: ID_PATH_TAG=pci-0000_06_00_0 > E: ID_NET_DRIVER=oak > E: ID_NET_LINK_FILE=/etc/systemd/network/10-oxb-mvc-sw2-debug.link > E: ID_NET_NAME=enp6s0 > E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/enp6s0 /sys/subsystem/net/devices/enp6s0 > E: TAGS=:systemd: > ``` > > ID_NET_LINK_FILE seems to indicate it used the link file, but I'm not sure why the interface names were not changed ? > > I'm on Ubuntu Focal 245.4 > > Any guidance would be appreciated. > > Kind regards > Henti