I am trying to rename one of the interfaces on a cluster machine with 20 interfaces, some of them are physical, others are virtual. After researching I found out that in newer versions of Ubuntu the /etc/udev/rules.d/70-persistent-net.rules
is actually missing and there isn't a way to generate it. I have tried to run: $ sudo udevadm trigger -s net -c add
and /lib/udev/write_net_rules
file is also missing, so there isn't an easy way to generate the /etc/udev/rules.d/70-persistent-net.rules
file. I have tried to create this file, to populate it with:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:13:f1:ab:1e:e8", ATTR{dev_id}=="0x0", ATTR{type}=="1", NAME="enp6s0f0"
I have also changed the /etc/default/grub
file and added the net.ifnames=0 biosdevname=0
option to the GRUB_CMDLINE_LINUX
and updated the grub: sudo update-grub
but after the reboot only one of the interfaces was in my list of interfaces, the one I have renamed, so I had to remove the custom file, revert the grub settings and reboot again.
Is there a simple way to do that in Ubuntu 18.04 and what was the reason for Ubuntu to remove the /etc/udev/rules.d/70-persistent-net.rules
file?
but after reboot of the system the
write_net_rules
file and the70-persistent-net.rules
file but they are nowhere to be found.