renaming ethernet interface not working
Karl Auer
kauer at biplane.com.au
Fri May 6 08:31:53 UTC 2016
On Fri, 2016-05-06 at 09:59 +0200, Tom H wrote:
> 0) "Re-"naming to kernel names isn't recommended, if not actually
> discouraged.
Can you explain what you mean by "kernel names"? Do you mean "eth0 and
"wlan0"? If so, how are these special to the kernel?
> 1) Are you sure that the "MACAddress=" in "11-eth0.link" is correct?
Yes.
> 2) What's the value of "ID_NET_LINK_FILE" for "enp0s31f6"?
E: ID_NET_LINK_FILE=/etc/systemd/network/11-eth0.link
However, I gave in and changed the name using a udev rule - that works.
Interestingly, udevadm now shows the new name eth0 as an alias, whereas
wlan0 is not shown as an alias. Compare (two lines, mailer may fold):
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/wlan0
E: SYSTEMD_ALIAS=/sys/subsystem/net/devices/eth0 /sys/subsystem/net/devices/eth0
> 3) Does copying "/lib/systemd/network/99-default.link" to
> "/etc/systemd/network/" and changing "NamePolicy=" to
> "NamePolicy=kernel" keep both kernel names?
I need to know what you mean by "kernel name" before I can answer. But
would not 10 and 11 mask 99?
> 4) Does setting "net.ifnames=0" at the kernel cmdline keep both
> kernel names?
Again, need to know what "kernel names" are.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389
GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4
More information about the ubuntu-users
mailing list