renaming ethernet interface not working

Ralf Mardorf silver.bullet at zoho.com
Fri May 6 09:42:08 UTC 2016


On Fri, 06 May 2016 18:31:53 +1000, Karl Auer wrote:
>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?

The kernel assigns those names.

"The classic naming scheme for network interfaces applied by the kernel
is to simply assign names beginning with "eth0", "eth1", ... to all
interfaces as they are probed by the drivers." -
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

Regards,
Ralf

OT: "Stable interface names even when hardware is added or removed,
i.e. no re-enumeration takes place" -
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/

That's a wrong claim. Since I add and remove audio cards, I need to
search for the inconsistent name of the one and only net device. The
wildcard "?" is for getting the number that does change, IOW
re-enumeration takes place.

dhcpcd_on() {
  echo ; dhcpcd $(basename $(ls -d /sys/class/net/enp?s0)) ; echo
} 








More information about the ubuntu-users mailing list