Score:0

Can't connect to the Internet using an Ethernet cable on Ubuntu 20.04.2

my flag

My Ethernet isn't working. Let's try and resolve that.

Alright so, I installed a fresh copy of Ubuntu so I have nothing from apt-get installed (so no net-tools, etc.)

I have no other computers around me apart from my M1 MacBook Pro and (of course) my Ubuntu PC, running Ubuntu 20.04.2 LTS.

Now, for some debugging, let's look at the outputs of some commands.

nmcli device says: enp3s0 - ethernet - connecting (getting IP configuration).

ip a, this returns a long string and since I can't copy and paste from my Ubuntu Machine, I have to type it out manually so I'll only put what's important:

2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000

  link/ether 1c:1b:0d:9f:da:c2 brd ff:ff:ff:ff:ff:ff

  inet6 fe80::e279:831b:566e:595c/64 scope link noprefix router

    valid_lft forever preferred_lft forever

sudo lshw -C network, sheesh, this is a long one. Please comment what important things you will need here as I don't want to include everything.

lspci -nnk | grep 0200 -A3 says:

03:00.0 Ethernet controller [**0200**]: Realtek Semiconductor Co., Ltd. RTl8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
   Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet [1458:e000]
   Kernal driver in use: r8169
   Kernal modules: r8169

I don't know what to do and have tried many solutions here at the Ask Ubuntu forums. I've changed like managed=false to managed=true somewhere and... well, my memory is trash so I don't know what else I've done.

:(

24601 avatar
in flag
please read [ask] then [edit] accordingly to provide more specific information about your issue.
my flag
What do you mean? At least give me some info on what's missing.
in flag
You seem unsure about the version of Ubuntu you’re running, and there is zero actionable information regarding the computer with the problem. We know more about your Mac than your Ubuntu machine. Please [edit] your question to include the output of `sudo lshw -C network` and `sudo lspci` and `ip a` so that it might be feasible to offer specific suggestions
my flag
Alright but I am on my Mac with Wi-Fi and on my Ubuntu PC without Wi-Fi so any long text, I have to type myself but ok.
my flag
Please tell me what important things I should put for the `sudo lshw -C network` and `sudo lspci` details.
chili555 avatar
cn flag
Please show us: `lspci -nnk | grep 0200 -A3`
my flag
@chili555 Ok I have included that now, thanks!
Score:0
us flag

Maybe its a bad file configuration in:

/etc/netplan/(filename).yaml

Look at this tutorial: https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-configure-networking-in-ubuntu-20-04-with-netplan/

my flag
Hey! Thanks new contributor, I have added a `/etc/netplan/ethernet.yaml` upon following a solution. I will look, thank you!
my flag
Ah I didn't add `dhcp4 = true` better try that!
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.