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

Re: Naming of network devices - how to improve it in buster



On Fri, Jul 14, 2017 at 10:20 AM, Henrique de Moraes Holschuh
<hmh@debian.org> wrote:
> On Fri, 14 Jul 2017, Tom H wrote:


>> 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. As the driver probing is
>
> Unfortunately, this is incorrect.

It's most likely written by Lennart so you should take it up with him.


> MOST PCI/PCIe NICs indeed use "ethX", etc. But the naming scheme really
> is device driver-specific, and the "default" name used by a driver is
> considered part of the kernel stable ABI, and cannot be changed on the
> kernel side unless it is done opt-in at kernel config time (kconfig) or
> at boot time (kernel command line, device tree, etc).
>
> That said, most consumer devices nowadays are handled by drivers that
> will use either ethX or wlanX by default.
>
>> generally not predictable for modern technology this means that as soon
>> as multiple network interfaces are available the assignment of the names
>> "eth0", "eth1" and so on is generally not fixed anymore and it might
>> very well happen that "eth0" on one boot ends up being "eth1" on the
>> next.
>
> Correct, in the general case.


Reply to: