Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Wired Ethernet not working on 18.04 after last updates.

  1. #1
    Join Date
    Sep 2018
    Beans
    5

    Wired Ethernet not working on 18.04 after last updates.

    My Ethernet (wired) connection on multiple laptops does not work after installing the standard updates after a fresh 18.04 install. The WiFi (wireless) connections work fine.

    The wired connection is not able to get an IP or auto-negotiate with the DHCP server on my router. I am positive that the issue is not with the hardware on my laptop, the network cable, or the settings on my router.

    I am includind as much information as possible in anticipation of submitting a bug report for Ubuntu. However, I would like to (a) discover a fix, and (b) identify what specific updated file(s) broke the wired network interface. As it currently exists, 18.04 is unuable for me, as need ethernet networking and don't want to use a non-updated OS.

    Networking diagnostic info when successfully connected via WiFi: http://paste.ubuntu.com/p/VQwz3zSdKN/
    Networking diagnostic info when trying to connect via Ethernet: http://paste.ubuntu.com/p/dmBfXxRHzv/

    Wired Ethernet works under the following:
    • Ubuntu 18.04 Live
    • Ubuntu 18.04 fresh install to laptop's harddrive
    • Kubuntu 18.04 w/ pending updates installed to a USB drive\
    • Kali Linux 2018.3


    Wired Ethernet does not work under the following:
    • Ubuntu 18.04 post-update installed locally
    • Kubuntu 18.04 post-update installed to a USB drive


    Procedure to reproduce the problem:
    1. Using an Acer Aspire V laptop
    2. Download Ubuntu 18.04.1 ISO and install to Flash Drive
    3. Connect Ethernet
    4. Boot Ubuntu Live -- Wired Internet is connected and works
    5. Install Ubuntu (I'm using manual partitioning to set up encryption, but this doen't matter)
    6. Remove Live USB and reboot
    7. Installed Ubuntu - Ethernet connects as soon as login happens
    8. Prompted to install recommended updates (already downloaded)
    9. Install all updates. - Ethernet sill works
    10. Restart - Ethernet does not work


    Symptoms:
    • GUI Network Manager will show "Wired Connecting". After about 20 seconds, a system try message will say "Connection failed: Activation of network connection failed"
    • dhclient -v enp1s0f1 produces an endless stream of failed attempts


    Code:
    sudo dhclient -v enp1s0f1
    
    Listening on LPF/enp1s0f1/f8:a9:63:a4:af:27
    Sending on   LPF/enp1s0f1/f8:a9:63:a4:af:27
    Sending on   Socket/fallback
    DHCPDISCOVER on enp1s0f1 to 255.255.255.255 port 67 interval 3 (xid=0xdc351d60)
    DHCPDISCOVER on enp1s0f1 to 255.255.255.255 port 67 interval 4 (xid=0xdc351d60)
    ... (endless)
    Clearly my router is not on 255.255.255.255. It is on 192.168.0.1 (default gateway)

    Code:
    sudo dhclient -v -s 192.168.0.1 enp1s0f1
    
    Listening on LPF/enp1s0f1/f8:a9:63:a4:af:27
    Sending on   LPF/enp1s0f1/f8:a9:63:a4:af:27
    Sending on   Socket/fallback
    DHCPDISCOVER on enp1s0f1 to 192.168.0.1 port 67 interval 3 (xid=0xce5c8048)
    DHCPDISCOVER on enp1s0f1 to 192.168.0.1 port 67 interval 7 (xid=0xce5c8048)
    ... (endless)
    I tried using 192.168.0.255 and 192.168.0.0 as well with the same results

    Unsuccessful fixes:
    • Restart network manger service
    • Delete all Network Manager profiles
    • Uninstall and reinstall Network Manager
    • Attempt to reinstall all networking utilities by doing the following:
      • manually download all packages listed from
        Code:
        sudo apt list *network* | grep installed
      • uninstall listed packages
      • reinstall listed packages using
        Code:
        dpkg
      • This seems like it might have tempoirially fixed the problem Kubuntu 18.04. Some combination of that and some other steps resulted in me being connected via Ethernet after a restart. However, upon the next restart the issue returned



    Diagnostic information:
    diagnostic script ouput when successfully connected via WiFi: http://paste.ubuntu.com/p/VQwz3zSdKN/
    diagnostic script ouput when trying to connect via Ethernet: http://paste.ubuntu.com/p/dmBfXxRHzv/


    Code:
    ifconfig
    enp1s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            ether f8:a9:63:a4:af:27  txqueuelen 1000  (Ethernet)
            RX packets 0  bytes 0 (0.0 B)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 895  bytes 181974 (181.9 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 6110  bytes 432641 (432.6 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 6110  bytes 432641 (432.6 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    
    wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 192.168.0.14  netmask 255.255.255.0  broadcast 192.168.0.255
            inet6 fe80::88b5:b0a6:8b6f:3d7a  prefixlen 64  scopeid 0x20<link>
            ether 20:68:9d:41:36:7b  txqueuelen 1000  (Ethernet)
            RX packets 16821  bytes 8300368 (8.3 MB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 10092  bytes 2101873 (2.1 MB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

  2. #2
    Join Date
    Sep 2018
    Beans
    5

    Re: Wired Ethernet not working on 18.04 after last updates.

    I've confirmed that this is affecting an Asus laptop as well.

  3. #3
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,831
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Wired Ethernet not working on 18.04 after last updates.

    Install another driver

    Code:
    sudo apt-get install --reinstall linux-headers-$(uname -r) linux-headers-generic build-essential dkms
    wget http://de.archive.ubuntu.com/ubuntu/pool/universe/r/r8168/r8168-dkms_8.046.00-1_all.deb
    sudo dpkg -i r8168-dkms_8.046.00-1_all.deb
    echo "blacklist r8169" | sudo tee -a /etc/modprobe.d/blacklist.conf
    Reboot

  4. #4
    Join Date
    Sep 2018
    Beans
    5

    Re: Wired Ethernet not working on 18.04 after last updates.

    @praseodym

    Thanks! That seems to have worked. The commands you provided seem to be part of a common solution, but I'm wondering if you could clarify a few points. I would like to document the fix so that I can better understand how to apply it to related problems.

    1. The first command seems to reinstall several packages related to the Linux kernel. I'm a little confused about why these specific packages were chosen though. My understanding is that build-essential is related to packages used for compiling other packages, but I'm not sure what the linux-headers and dmks packages have to do with networking. I know dkms is related to driver modules, but that it is separate from the actual driver's themselves. Were these packages specific to this issue, or were they more of a catch-all to reinstall when issues arise?

    2. Did the latest 18.04 update upgrade the 8168 drivers to 8169? If I didn't already know this, how would I find out (e.g. some kind of system log showing what was changed when I install updates from within Ubuntu)

    3. When I installed the 8168 drivers, the package file also had be rebuild the initrd, which I understand is the memory image or ram disk that fires off the rest of the kernel load when Linux starts. Are the networking drivers this deeply embedded in Linux? My assumption was that while a networking stack might be built into the core of a kernel, individual networking drivers operated at a higher level.

    4. Finally, my assumption is that by blacklisting the r8169 drivers, I will prevent them from auto-updating in the future.

    Thanks again. If you don't have the time to answer these questions, I understand. Just glad to have Linux updated and usable again. .... Now to roll back the drivers on three other installs....

    2.

  5. #5
    Join Date
    Jun 2015
    Beans
    9

    Re: Wired Ethernet not working on 18.04 after last updates.

    Hello,

    The same problem is here https://ubuntuforums.org/showthread.php?t=2399918

    However this solution doesn't work. Still can't connect to isp dhcp server.

    @grimecho can you do tcpdump of dhcpdiscover messages?

    Thanks

  6. #6
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,831
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Wired Ethernet not working on 18.04 after last updates.

    1. You need the headers and dkms to ensure that dkms compiles the source code after each kernel upgrade

    2. No, they are separated. From experience, r8168 works much better with the cards showing [10ec:8168]

    3. Yes, they are compiled into the kernel. Windows "attaches" them to the microkernel to an "interface", not with Linux

    4. Exactly, otherwise 2 drivers are loaded

  7. #7
    Join Date
    Aug 2011
    Location
    Berlin, Germany
    Beans
    7,831
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Wired Ethernet not working on 18.04 after last updates.

    P.S.: Source code is located in /usr/src

  8. #8
    Join Date
    Sep 2018
    Beans
    5

    Re: Wired Ethernet not working on 18.04 after last updates.

    Thanks for the answers and the help.

    Seeing as this issue is still originally being caused by applying the latest updates to Ubuntu, I'm going to open a bug report this weekend.

    @pnck - I'm getting the same DHCP checksum errors in Wireshark, but I'm still able to connect. On my outgoing DHCP request, the frame check sequence states "Frame check sequence: 0x00000000 incorrect, should be 0xacb0fc3f" just as you posted. However, my router still responds with a DHCP ACK addressed to and containing my assigned IP.

    Here are the filtered Wireshark logs if you want to look: https://drive.google.com/open?id=1BA...7EbTx3BLGY1rl4

  9. #9
    Join Date
    Jun 2015
    Beans
    9

    Re: Wired Ethernet not working on 18.04 after last updates.

    @grimecho thanks a lot. I wan't to say that my home DHCP server sends dhcpoffer, however ISP DHCP doesn't do this. Сonsequently Ubuntu dhclient works with home router DHCP server in spite of wrong checksum. I'm planning to create the bug report too.

  10. #10
    Join Date
    Sep 2018
    Beans
    5

    Re: Wired Ethernet not working on 18.04 after last updates.

    If you're having issues with getting an IP address directly from your ISP, can't you just connect via a NATed router? Lots of benefits to this besides just easier configuration. Of course, you might have apps or services that need an external IP address directly

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •