Xenial: impossible to rename an interface with a .link file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hi,
Impossible to rename an interface with a .link file in a updated Ubuntu Xenial. It's a fresh and basic install without GUI, just a ssh server (it's a VirtualBox VM).
Here is my environment:
-------
root@xenial-
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
-------
According to the manpage "systemd.link" (example 2), I can rename an interface with a .link file like this:
-------
root@xenial-
-rw-r--r-- 1 root root 57 May 10 02:07 /etc/systemd/
root@xenial-
[Match]
MACAddress=
[Link]
Name=eth0
-------
Currently the interface name is enp0s3 because the OS is not yet rebooted:
-------
root@xenial-
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,
link/ether 08:00:27:be:14:c2 brd ff:ff:ff:ff:ff:ff
-------
And now I reboot the OS. But, after the reboot, the interface name is still enp0s3:
-------
root@xenial-
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s3: <BROADCAST,
link/ether 08:00:27:be:14:c2 brd ff:ff:ff:ff:ff:ff
-------
Just for information:
-------
root@xenial-
BOOT_IMAGE=
root@xenial-
systemd:
Installed: 229-4ubuntu4
Candidate: 229-4ubuntu4
Version table:
*** 229-4ubuntu4 500
500 http://
100 /var/lib/
-------
Note: the .link file is taken into account _only_ if I set the "net.ifnames=0" kernel boot parameter. But, according to the manpage "man systemd.link", this is normally not necessary.
Regards.
Changed in systemd (Ubuntu): | |
status: | Confirmed → Won't Fix |
Sorry impossible to attach my "apport" file. If I try, the "Submit" button works no longer.