SLES Naming Sequence

The predictable naming scheme in SLES seems to be renaming the device name of the Lan card causing the naming sequence to become incorrect. Any suggestion why the predictable naming scheme is renaming the devices in this way?

If the interface names are ethX then they’re not predictable names (as you’re now finding).

I’d look at the files in /etc/udev/rules.d/ - there’s probably one called 70-persistent-net.rules which assigns the names based on MAC addresses.

Try kernel boot option biosdevname=0 or net.ifnames=0

I don’t have biosdevname installed so I think this is disabled. I tried net.ifnames=0 the sequence seems to be slightly correct. However, I think this is just using traditional Linux naming scheme, so the name is not consistent after each reboot.

Looking into /etc/udev/rules.d. Inside “70-persistent-net.rules” I can see related rules that is causing the strange naming behavior. After removing the “70-persistent-net.rules” file, Changing kernel boot option to net.ifnames=1 & restarting system. The naming sequence is still the same, Any suggestion on why this is happening?

Also, I have never written these rules. Any suggestion on why these rules are generated in the first place?

SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“c4:70:bd:a1:f4:e8”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth10”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“xhci_hcd”, ATTR{dev_id}==“0x0”, KERNELS==“0000:72:00.4”, ATTR{type}==“1”, KERNEL==“eth*”, NAME=“eth11”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:03:c8:67”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth12”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:03:c8:66”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth13”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:03:c8:68”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth14”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:03:c8:69”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth15”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“f0:b2:b9:15:11:73”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth20”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“f0:b2:b9:15:11:74”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth21”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“f0:b2:b9:15:11:75”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth22”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“ec:e7:a7:0c:af:f9”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth23”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:9f:a0”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth8”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:9f:a1”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth9”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“14:23:f3:31:0f:d9”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth6”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:a0:c6”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth16”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:9a:b4:cf”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth4”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“84:16:0c:24:7b:5d”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth2”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:9f:99”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth17”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“5c:25:73:10:22:0d”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth24”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“14:23:f3:31:0f:d8”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth5”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:a0:c7”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth18”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“8c:84:74:9a:b4:ce”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth3”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“84:16:0c:24:7b:5c”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth1”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“48:21:0b:75:9f:98”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth19”
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“5c:25:73:10:22:0c”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth25”
#PCI device 0x8086:0x15ff (i40e)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“ec:e7:a7:0c:af:f8”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth7”
#PCI device 0x8086:0x1572 (i40e)
SUBSYSTEM==“net”, ACTION==“add”, DRIVERS==“?", ATTR{address}==“f0:b2:b9:15:11:72”, ATTR{dev_id}==“0x0”, ATTR{type}==“1”, KERNEL=="eth”, NAME=“eth0”

After looking into SUSE documentation I noticed we did not regenerate the initrd after removing the 70-persisten-net.rules file

The sequence of the name is now correct after entering the below command after removing the file

sudo mkinitrd

However there are still eth0,eth1,eth16,eth18 at the bottom of the list. Any Suggestions why this is happening?