eth0 -> eth1

Luca Ferrari fluca1978 at infinito.it
Wed Apr 15 06:19:59 UTC 2015


On Tue, Apr 14, 2015 at 1:51 PM, Alvin <info at alvin.be> wrote:
> I can't answer the why. It happens when network cards are added or removed.
> However, you can check and set the name in this file:
> /etc/udev/rules.d/70-persistent-net.rules
>

Uhm...even stranger: I've two rules for two different interfaces (but
I see only one port on my case)

# PCI device 0x1969:/sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0 (ATL1E)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:a0:d1:ae:cf:a6", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10de:/sys/devices/pci0000:00/0000:00:0a.0 (forcedeth)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:24:8c:72:10:aa", ATTR{dev_id}=="0x0",
ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"


Therefore it is quite strange that a rename event is triggered having
two persistent eth0 and eth1.

Now I can see that the forcedeth module is working on the
becoming-eth1 interface, but starting from eth0:

[    1.146611] forcedeth: Reverse Engineered nForce ethernet driver.
Version 0.64.
[    1.668624] forcedeth 0000:00:0a.0: ifname eth0, PHY OUI 0x1374 @
1, addr 00:24:8c:72:10:aa
[    1.668628] forcedeth 0000:00:0a.0: highdma csum pwrctl mgmt gbit
lnktim msi desc-v3
[   20.180063] forcedeth 0000:00:0a.0: irq 42 for MSI/MSI-X
[   20.180100] forcedeth 0000:00:0a.0 eth1: MSI enabled


Now, from systemd-udevd(8) I got:
       net.ifnames=
           Network interfaces are renamed to give them predictable
names when possible. It is enabled by default, specifying 0 disables
it.

Therefore udevd renames interfaces by default, how and why in my case
is unclear to me.

Luca




More information about the kubuntu-users mailing list