Score:2

Ubuntu 22.04 cable network does not work, only wifi

gd flag

I installed Ubuntu 22.04 in dual boot with windows but my wired network doesn't work in Ubuntu. WiFi does work. I tried several tutorials on the internet but none of them work in my case. My system is a fresh installation, I didn't modify any network configuration.

My cable is plugged in and works on Windows so it's not a physical issue or a router issue.

I use Ubuntu with wifi at work, at home I connect the PC with the cable internet (I don't have wifi at home). I start Ubuntu and the internet does not work. I have tried a lot to solve this but nothing works. I am running on Windows to ask for help here because I have internet on the wired connection in Windows. I came back to Ubuntu to take some screenshots of my internet connection, but now the internet works. What is going on? It seems that it began to work again after I started windows and came back to Ubuntu.

(It happened more than once).

ip addr

dhclient

netplan yaml

sudo lshw -C network

about the fast boot, it was already disabled

fast boot is disabled on windows

My wired settings:

IPv4: automatic(DHCP) IPv6: Disable

------------ SOLUTION ------------------------------

My internet driver was wrong, it was for 8169 but my hardware is for 8168 driver.

Running sudo apt install r8168-dkms did solve the problem, you will only need to set a password (write it down) and after a reboot use this password to set MOK.

Steps after sudo apt install r8168-dkms and reboot

chili555 avatar
cn flag
Could this be the issue?https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi#about_dual-boot_with_windows_and_fast-boot_enabled Welcome to Ask Ubuntu.
Terrance avatar
id flag
Can you please [edit](https://askubuntu.com/posts/1434794/edit) your question and add in the output of `sudo lshw -C network` ? Thank you!
Vinicius avatar
gd flag
I have added the sudo lshw -C network, also I have checked the fast boot, it's disabled, thank you.
Terrance avatar
id flag
See https://askubuntu.com/a/1305665/231142 since you have a 8168 NIC where it loaded the 8169 driver, which I have found to not work well at all.
Vinicius avatar
gd flag
sudo apt install r8168-dkms Worked!, after set a password, reboot and set the MOK, my cable connection works at work, thank you everyone!
Terrance avatar
id flag
Go ahead and write your own answer here and I will upvote it. We are all about Questions and Answers if you want to answer your own. :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.