Re: Systemd interface rename does not work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

i dont know what way you prefer to archieve network interface renaming,
what I do is set specific udev rules.

user@host# cat /etc/udev/rules.d/60-net.rules
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:00:50:cc:19:0a",
ATTR{type}=="1", NAME="eth0"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:00:50:cc:4f:3c",
ATTR{type}=="1", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="00:00:50:cc:10:02",
ATTR{type}=="1", NAME="eth2"

After a reboot the interface names will be seit accordingly.
I have never read about an way to change an interface name via
networkmanager.


-----Ursprüngliche Nachricht-----
Von: CentOS [mailto:centos-bounces@xxxxxxxxxx] Im Auftrag von Matt .
Gesendet: Sonntag, 26. März 2017 14:17
An: centos@xxxxxxxxxx
Betreff:  Systemd interface rename does not work

Hi,

I'm moving to Systemd for my network management but I don't see my link name
changed when I try to using a .link name.

The .network file works right, networkmanager is removed as well to
accomplish this.

Any idea why the rename is not done ?


/etc/systemd/network/0-eth.network
[Match]
MACAddress=00:1a:4a:a9:0a:17

[Network]
Address=172.16.3.141/24
Gateway=172.16.3.254
DNS=172.16.3.1
DNS=172.16.3.2

/etc/systemd/network/0-eth.link
[Match]
MACAddress=00:1a:4a:a9:0a:17

[Link]
Name=eth0
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux