You are not logged in.

#1 2017-09-21 11:19:21

LuX
Member
From: France
Registered: 2010-06-14
Posts: 79

[SOLVED] No network at boot (Realtek RTL8111/8168/8411 + r8169)

Hello!

I've bought an old PC with 64-bits processor and Realtek RTL8111/8168/8411 (rev 02) ethernet controller. I have moved the SSD from my even older laptop with 32-bits processor into it. After 1m30 trying to run a start job for sys-subsystem-net-devices-eth0.device, which fails, it boots well except that (logically) the network doesn't work:

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:1f:d0:14:d3:1a brd ff:ff:ff:ff:ff:ff

$ systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; vendor preset: disabled)
   Active: inactive (dead)

However I can start dhcpcd with systemctl by hand:

$ systemctl start dhcpcd

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 00:1f:d0:14:d3:1a brd ff:ff:ff:ff:ff:ff

$ systemctl status dhcpcd
● dhcpcd.service - dhcpcd on all interfaces
   Loaded: loaded (/usr/lib/systemd/system/dhcpcd.service; disabled; vendor preset: disabled)
   Active: active (running) since Thu 2017-09-21 14:44:07 CEST; 10s ago
  Process: 643 ExecStart=/usr/bin/dhcpcd -q -b (code=exited, status=0/SUCCESS)
 Main PID: 652 (dhcpcd)
    Tasks: 1 (limit: 4915)
   CGroup: /system.slice/dhcpcd.service
           └─652 /usr/bin/dhcpcd -q -b

sept. 21 14:44:09 osiris dhcpcd[652]: enp2s0: carrier acquired
sept. 21 14:44:09 osiris dhcpcd[652]: DUID 00:01:00:01:1a:54:d2:aa:00:19:b9:66:f7:b9
sept. 21 14:44:09 osiris dhcpcd[652]: enp2s0: IAID d0:14:d3:1a
sept. 21 14:44:09 osiris dhcpcd[652]: enp2s0: adding address fe80::66c8:e6b2:5218:2de6
sept. 21 14:44:09 osiris dhcpcd[652]: enp2s0: soliciting an IPv6 router
sept. 21 14:44:09 osiris dhcpcd[652]: enp2s0: rebinding lease of 192.168.1.30
sept. 21 14:44:14 osiris dhcpcd[652]: enp2s0: DHCP lease expired
sept. 21 14:44:14 osiris dhcpcd[652]: enp2s0: soliciting a DHCP lease
sept. 21 14:44:14 osiris dhcpcd[652]: enp2s0: offered 192.168.1.30 from 192.168.1.254
sept. 21 14:44:14 osiris dhcpcd[652]: enp2s0: probing address 192.168.1.30/24

I've seen many posts on this forum reporting similar problems with this ethernet controller. As suggested here I have added the 'noapic' option to grub (via GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub + running 'grub-mkconfig -o /boot/grub/grub.cfg'). However I noticed that I can boot on a Ubuntu live-cd without this option and with the network working out of the box.

Here is part of the dmesg output.

$ dmesg | grep r816
[    2.336473] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[    2.336484] r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
[    2.336987] r8169 0000:02:00.0 eth0: RTL8168c/8111c at 0xf814f000, 00:1f:d0:14:d3:1a, XID 1c4000c0 IRQ 26
[    2.336990] r8169 0000:02:00.0 eth0: jumbo features [frames: 6128 bytes, tx checksumming: ko]
[    2.607390] r8169 0000:02:00.0 enp2s0: renamed from eth0
[  151.807988] r8169 0000:02:00.0 enp2s0: link down
[  151.807990] r8169 0000:02:00.0 enp2s0: link down
[  153.508088] r8169 0000:02:00.0 enp2s0: link up

Oddly enough, I also noted that the wallpaper of the login screen is not displayed. Except these two points it seems that everything works well (although it is a 32-bits system on a 64-bits computer).

Any idea? (Not on the wallpaper... ;-))

LuX

Last edited by LuX (2017-09-21 11:40:04)

Offline

#2 2017-09-21 11:38:04

LuX
Member
From: France
Registered: 2010-06-14
Posts: 79

Re: [SOLVED] No network at boot (Realtek RTL8111/8168/8411 + r8169)

Only while typing the above post I noticed this "detail" that the architectures did not coincide, as I said.
Then I tried to boot from a 64-bit iso image of archlinux and it works out of the box, so my initial post is simply irrelevant!
Sorry for bothering...

Last edited by LuX (2017-09-21 11:39:34)

Offline

Board footer

Powered by FluxBB