Some time ago there was a monumental change in the naming convention for networking in Ubuntu. wlanx became some strange vlp43txuv and eth0 became enpcl231.
Why it became to be an ordinary user like me can only imagine. It is not a good vision.
1 Is it possible to either change this globally on the system through alias, of sorts or
2 Is it possible to change it temporarily every time I run bash or some script?
It would make my life a lot easier to use the old naming convention as it is the quickest way to use. Now I have to check it every time because I cannot remember the new names at all.
If there are any hidden risks involved, please write those too. Perhaps a locked variable cannot work properly if an alias is changed and so forth.
EDIT: I came across this video on the different naming conventions that have been used. Here I found that the strange names comes from the PCI location
I forgot. The solution to my problem was just changing a line in grub as suggested in the duplicate thread. I did not have to change /etc/...
GRUB_CMDLINE_LINUX="net.ifnames=0"
, and that's what I have in mine and it does as you request. The "new" names were supposed to make it easier for systems with multiple "slots" and "ports", so a name like "en0s1p0" means ethernet 0, slot 1, port 0. – heynnema Jun 30 '17 at 14:04SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC Address Here>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"
– Sergiy Kolodyazhnyy Jun 30 '17 at 18:14/etc/udev/rules.d/70-persistent-net.rules
and I see that I've defined "proper" device names for all of my network devices... so now I can't remember... which one "fixed" the problem for me... thenet.ifnames=0
or the file... or both. – heynnema Jun 30 '17 at 22:32