My main ethernet interface is called enp2s0, but some software requires me to name it to eth0.
How can I rename it?
I tried creating /etc/udev/rules.d/10-rename-network.rules (as per this post), creating /etc/udev/rules.d/70-persistent-net.rule and editing /etc/network/interfaces.
The contents of /etc/udev/rules.d/10-rename-network.rules were:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ff:ff:ff:ff:ff:ff", NAME="eth0"
with ff:ff...:ff replaced with the mac address of enp2s0.