PINE64
bootloader cmdline for non crazy eth names - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85)
+--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88)
+--- Thread: bootloader cmdline for non crazy eth names (/showthread.php?tid=5242)



bootloader cmdline for non crazy eth names - stuartiannaylor - 10-10-2017

Presume its in the bootloader but if I post 
Code:
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"
Could we have that at one stage to get some sanity with the eth name such as eth0, eth1... wlan1...

I just created a persistent rule.

nano /etc/udev/rules.d/70-persistent-net.rules 
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:53:44:58", KERNEL=="eth*", NAME="eth1"

If any one else wants the same just change the mac address to your adapter

If the bootloader passes the first then we should get sane names automatically.

My eth1 was enx00e04c534458 and its not easy to remember Smile