You are not logged in.

#1 2022-01-22 06:39:29

threedope
Member
Registered: 2022-01-22
Posts: 5

[SOLVED] Ethernet works in live USB, breaks when booting from install

Hello-

So, my motherboard is a Gigabyte B450M DS3H rev 1.0 with the Realtek RTL8111/8168/8411 rev 0c NIC. I've tried every suggested fix from the wiki and some fixes from various forums to no avail.

I'm currently running the most recent version of Arch, but 6-12 months ago my PC was running Manjaro with a functional ethernet connection despite initially having this exact problem. Somehow, I fixed the ethernet.

Now I'm having difficulty fixing this in Arch, so could someone please help me troubleshoot? I'm stumped.


Additional info:
The live environment uses the r8169 driver flawlessly on a 5.15 kernel. The install also uses r8169, but on 5.16. I don't believe the kernel is the problem based upon my experience with Manjaro, but my memory is fuzzy so that's conjecture.

I installed the r8168 driver after mounting my install from the live USB, then booted into the install to blacklist r8169 + execute "mkinitcpio -p linux". Full PC shutdown -> boot into install -> still no internet. "modprobe r8168" threw a message about tainting the kernel, but showed it was successfully loaded. The last line displayed with "dmesg | grep r8168" was "enp4s0: renamed from eth0". Same message when r8169 is used.

Disabling ipv6 via a kernel parameter didn't fix the issue.

WOL and IOMMU are enabled in the BIOS.

The ethernet light is on during POST, but-
I reinstalled Windows and performed an ungraceful shutdown to prevent WOL from being disabled by Windows (wiki suggestion). I recall doing this to get a temporarily functioning internet connection on Manjaro. I also recall having to reset my entire network prior to doing that. Unfortunately, this hasn't worked on Arch.


Thanks in advance

Last edited by threedope (2022-01-25 05:17:11)

Offline

#2 2022-01-22 06:45:09

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 714

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

You can confirm whether it's a kernel issue introduced in 5.16 by installing linux-lts and r8168-lts and booting with the LTS kernel.

Offline

#3 2022-01-22 07:17:11

threedope
Member
Registered: 2022-01-22
Posts: 5

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

Just finished testing - didn't fix the problem.

Edit: tested both r8169 and r8168-lts on linux-lts. Same issue.

Last edited by threedope (2022-01-22 07:36:11)

Offline

#4 2022-01-22 09:26:57

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

NIC likely being the Realtek RTL8111/8168/8411 rev 0c.

How abot asking "lspci" instead of speculating?

tried every suggested fix from the wiki and some fixes from various forums

Well, if you've tried everything, there's certainly no hope…

still no internet. "modprobe r8168" … was successfully loaded. … Disabling ipv6  … WOL and IOMMU

Do you have issues w/ the NIC, the lease or WOL?
Please post a complete system journal ("sudo journalctl -b", in doubt redirect it to a file and usb-walk it to a system w/ network access)

Offline

#5 2022-01-22 19:06:07

threedope
Member
Registered: 2022-01-22
Posts: 5

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

How abot asking "lspci" instead of speculating?

"dmesg | grep r8169" returns "eth0: RTL8168g/8111g". I guessed that was only what the driver reported, so I trusted lspci's output more. I'm pretty new to troubleshooting Linux, especially via CLI.

But yes, Realtek RTL8111/8168/8411 rev 0c. is what's shown by lspci.

Well, if you've tried everything, there's certainly no hope…

I didn't mean to suggest I've "tried everything". The NIC mentioned is particularly notorious. It's relevant to someone else who has dealt with it to know they don't need to recommend fixes from the wiki.

Do you have issues w/ the NIC, the lease or WOL?
Please post a complete system journal ("sudo journalctl -b", in doubt redirect it to a file and usb-walk it to a system w/ network access)

I don't know what's causing the ethernet to break, just making blind attempts.

Here's the output from journalctl -b
https://pastebin.com/xuYiauaq

Offline

#6 2022-01-22 20:52:56

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,939

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

The NIC is there and doesn't cause immediate problems - you're just not making *any* attempt to actually connect to a network.
Install and enable dhcpcd and see where that leaves you.

Offline

#7 2022-01-22 21:25:00

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

For clarity: the live environment will auto-connect ethernet devices. This is not the case for an installed system unless the user provisions it specifically.


Jin, Jîyan, Azadî

Offline

#8 2022-01-25 05:16:04

threedope
Member
Registered: 2022-01-22
Posts: 5

Re: [SOLVED] Ethernet works in live USB, breaks when booting from install

To no one's surprise...enabling dhcpcd worked smile I switched back to kernel 5.16 and everything still functions.

Thanks!

Offline

Board footer

Powered by FluxBB