22
rated 0 times
[
22]
[
0]
/ answers: 1 / hits: 43056
/ 1 Year ago, thu, july 7, 2022, 3:25:26
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
.
More From » networking