[systemd-devel] Renaming interfaces with systemd.link

Lennart Poettering lennart at poettering.net
Mon Apr 3 08:17:28 UTC 2017


On Sat, 01.04.17 20:45, Chris Trobridge (christrobridge at hotmail.com) wrote:

> $cat /etc/systemd/network/10-eth0.link
> [Match]
> #OriginalName=eth0
> MACAddress=08:00:27:57:f6:40
> 
> [Link]
> Name=eno1
> 
> $ dmesg | grep eth0
> [    1.636915] e1000 0000:00:03.0 eth0: (PCI:33MHz:32-bit) 08:00:27:57:f6:40
> [    1.636920] e1000 0000:00:03.0 eth0: Intel(R) PRO/1000 Network Connection
> [    1.637818] e1000 0000:00:03.0 enp0s3: renamed from eth0
> 
> For these tests I have been using Fedora 25 in VirtualBox.

Note that "networkctl status ..." will actually show you the link file
applied to a specific interface. What does it show for yours?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list