Score:0

Wired connection fails to connect every time and turns itself off on Ubuntu 20.04

mx flag

I have a dual booted system and the connection works fine on windows so it's definitely not a problem with the cable or the port. Turning it on gives the "Wired connecting" message for a while before it turns itself off.

The wifi is working fine.

sudo lshw -class network

 *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: enp1s0
       version: 10
       serial: 38:f3:ab:e7:d4:05
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=5.13.0-30-generic duplex=full firmware=rtl8168g-3_0.0.1 04/23/13 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
       resources: irq:39 ioport:3000(size=256) memory:fd604000-fd604fff memory:fd600000-fd603fff
  *-network
       description: Wireless interface
       product: Realtek Semiconductor Co., Ltd.
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlp2s0
       version: 00
       serial: 74:4c:a1:cf:ef:87
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=rtw89_pci driverversion=5.13.0-30-generic firmware=N/A ip=10.42.0.206 latency=0 link=yes multicast=yes wireless=IEEE 802.11
       resources: irq:74 ioport:2000(size=256) memory:fd500000-fd5fffff

I used to experience problems with my wifi when I first installed ubuntu on this laptop a few months ago due to my network adapter but this question helped me fix it.

Andra avatar
tr flag
how do you receive your ethernet? have you access to the router?
Selfish Stoic avatar
mx flag
I do not have access to a router. The university just provides lan ports. I do not think it is an issue with the ports though since they work fine when I boot into windows.
waltinator avatar
it flag
Look at the logs! `sudo journalctl -b 0 -u NetworkManager`. Read `man journalctl`.
Andra avatar
tr flag
in Windows open cmd and run `ipconfig/release & net stop dhcp`, Win should show that you have no internet, reboot to Ubuntu and see if it gets ip address
Selfish Stoic avatar
mx flag
@waltinator I don't understand what exactly to read. The page is huge.
Selfish Stoic avatar
mx flag
@andra I raan the command on windows and switched to Ubuntu and the problem persists
Andra avatar
tr flag
do you have experience with Wireshark or other packet analyzing tool? You could run Wireshark and see Ubuntu dhcp requests and what exactly it receives back.
Andra avatar
tr flag
concerning dhcp release in Win: did you really see that Windows is without internet? Because after ip release, if dhcp is not stopped fast enough, Win receives a new address and it's the same situation.
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.