I am trying to rename one of my network interfaces from em1
to eth0
. I do not have /etc/udev/rules.d/70-persistent-net.rules. I have tried to regenerate this file by running these commands:
udevadm trigger
udevadm trigger --action=add
udevadm trigger --action=change
I tested each command individually, rebooted, looked for the 70-persistent file, before trying the next. None of the commands work, as the file is still not there, even after reboot.
I have also tried manually running the /lib/udev/write_net_rules and I get this error:
Cannot lock /etc/udev/rules.d/70-persistent-net.rules!
This is what is in my /etc/network/interfaces file (nothing else):
auto lo
iface lo inet loopback
My ifconfig output results in no eth0 interface, but I have an em1 interface that I need to change to eth0. I don't know how to do this without re-creating the 70-persistent file. Any help in either recreating this file or changing em1 to eth0, or both, would be greatly appreciated!