[systemd-devel] Possible net_id incorrect bus and/or slot

Robert Milasan rmilasan at suse.com
Thu Jan 9 03:55:08 PST 2014


On Thu, 9 Jan 2014 11:07:40 +0100
"Tomasz Torcz" <tomek at pipebreaker.pl> wrote:

> On Thu, Jan 09, 2014 at 10:59:34AM +0100, Robert Milasan wrote:
> > Hello, just notice that my network card is named enp0s25, but when
> > I do:
> > 
> > # readlink -f /sys/class/net/enp0s25
> > /sys/devices/pci0000:00/0000:00:19.0/net/enp0s25
> > 
> > # lspci |grep Network
> > 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit
> > Network Connection (rev 04)
> > 
> > enp0s25 seems wrong to me, or the slot is based on what?
> > 
> > Please clarify how to get this.
> 
>   0x19 = 25.  It's hexadecimal vs decimal.
> 

OK, now because that is clear, there is another issue:

Example:

user has an on board network adapter named enp3s0.
user adds 2 additinal network adapters on pcie and they will be named
enp6s0 and enp5s0, but enp3s0 also got renamed to enp4s0.

Now I'm not sure if this is normal, but in my own limited logic, it
doesn't sounds or look normal at all. The setup or the naming is not
very stable.

The on board nic didn't change or wasn't placed someplace else, well
it's on board, so it's a bit difficult to place on some other slot.
Also the users hasn't touch the system's BIOS.

My question is: is this expected or normal?

The network adapters are r8169

[    5.654437] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    5.655012] r8169 0000:04:00.0 eth0: RTL8168evl/8111evl at
0xffffc90001948000, 00:0a:cd:21:e3:e5, XID 0c900800 IRQ 57
[    5.655014] r8169 0000:04:00.0 eth0: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
[    5.655035] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    5.655360] r8169 0000:05:00.0 eth1: RTL8168evl/8111evl at
0xffffc9000194a000, 00:0a:cd:21:e3:e6, XID 0c900800 IRQ 58
[    5.655361] r8169 0000:05:00.0 eth1: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
[    5.655368] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    5.657199] r8169 0000:06:00.0 eth2: RTL8168g/8111g at 0xffffc90001974000,
d8:50:e6:4c:08:d4, XID 0c000800 IRQ 59
[    5.657202] r8169 0000:06:00.0 eth2: jumbo features [frames: 9200 bytes, tx
checksumming: ko]
[    5.706037] systemd-udevd[309]: renamed network interface eth2 to enp6s0
[    6.409314] systemd-udevd[306]: renamed network interface eth0 to enp4s0
[    6.415252] systemd-udevd[307]: renamed network interface eth1 to enp5s0

-- 
Robert Milasan

L3 Support Engineer
SUSE Linux (http://www.suse.com)
email: rmilasan at suse.com
GPG fingerprint: B6FE F4A8 0FA3 3040 3402  6FE7 2F64 167C 1909 6D1A


More information about the systemd-devel mailing list