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

Thread: Strange network problem after clean install of 16.04.1

  1. #1
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Strange network problem after clean install of 16.04.1

    I attempted an on-line distro upgrade from 14.04.4 to 16.04.1, which froze solid around the halfway point forcing me to do a power-down and of course that destroyed the system. Fortunately I was able to copy the /home directory to an external HD, via the Live CD. I then did a clean install of 16.04.1 -- which in itself was a bit of a hoot since the box in question has an EFI motherboard and my first effort used the wrong boot selection but I did eventually get a successful installation that is able to boot.

    Unfortunately, this installation's network interface appears to be seriously borked. For some reason, during the boot process the systemd code renames "eth0" to something else. From that box, I can ping my other machine (on which I'm typing this). However it is unable to reach past that point. And from the current machine, any attempt to ping the problem system gets "network unreachable."

    Can anyone offer troubleshooting suggestions? The /var/log/syslog file is so cluttered up with systemd entries that I can't find anything there that looks useful....
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  2. #2
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    bump -- this is becoming extremely frustrating!
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  3. #3
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Strange network problem after clean install of 16.04.1

    Thread moved to Networking & Wireless.

    eth0 is renamed because that is a feature of 16.04, is your issue with a wired connection?

  4. #4
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    Yes, it's a wired connection, that is able to ping my "router box" (on which I'm typing this reply) but is unable to ping any other address, nor does it have access to my DNS server located on the "router box" although all of this worked properly before the clean install of 16.04.1.

    Because of problems in the earlier installation, I had completely uninstalled Network Manager and reverted to the /etc/network/interfaces method, and after this problem appeared I manually added the necessary stanza to the interfaces file, including the dns-server line. The Network Manager applet now shows "network not managed" and after a few ping tests, the output of "ifconfig -a" shows a reasonable number of packets received -- and a much larger number transmitted because of the "Destination host unreachable" reports when I attempt to ping anything beyond the router box.

    Since I made no changes at all to the physical components and it had been working before the upgrade, I'm assuming that something is mis-configured due to the upgrade but I'm unable to determine just what it is. The "route" command fails to show any default rule immediately after powering up, but adding one from the command line has no effect whatsoever on the problem. Since this is my first contact with the massive changes introduced by systemd, I'm a bit lost and growing more frustrated by the hour!

    Thanks for moving the thread; hopefully it will get more response here.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  5. #5
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Strange network problem after clean install of 16.04.1

    I work with wireless issues and really have not done much work with wired so hopefully someone will stop by and take a look.

    When you reinstalled after the failed upgrade did you reformat your drive so no left over configuration files were present?

  6. #6
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    Quote Originally Posted by Wild Man View Post
    I work with wireless issues and really have not done much work with wired so hopefully someone will stop by and take a look.

    When you reinstalled after the failed upgrade did you reformat your drive so no left over configuration files were present?
    I simply checked the option to "Use entire disk" on the Live CD. However I've (at long last) found the problem and it's now working again. In my interfaces file, I had mis-spelled the dns-server line; it should have been dns-nameservers. The root problem was apparently the misconfigured route table, and I still don't have it corrected properly. My workaround is to add two lines to /etc /rc.local to first, install the default gateway rule correctly, then "ip route flush scope link" to get rid of the two lines apparently created by systemd that were shutting me down.

    Hopefully someone with more systemd experience will be able to show me how to make things work as well as they did before this "improvement" came onto the scene <grin>. Meanwhile the workaround seems to suffice, now that I corrected the problem in the interfaces file.
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  7. #7
    Join Date
    Nov 2009
    Location
    Rhode Island
    Beans
    23
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    Quote Originally Posted by Wild Man View Post
    Thread moved to Networking & Wireless.

    eth0 is renamed because that is a feature of 16.04, is your issue with a wired connection?
    Please note: This is not a new feature of Ubuntu itself, but is a result of Canonical falling in line with Debian and other distributions in moving to the systemd init system from upstart and SysV. The network changes specificly is the result of a systemd feature called Predictable Network Interfaces - all distributions that have moved to systemd will have network names like this:


    1. Names incorporating Firmware/BIOS provided index numbers for on-board devices (example: eno1)
    2. Names incorporating Firmware/BIOS provided PCI Express hotplug slot index numbers (example: ens1)
    3. Names incorporating physical/geographical location of the connector of the hardware (example: enp2s0) [ most distros that I have used are doing it this way ]
    4. Names incorporating the interfaces's MAC address (example: enx78e7d1ea46da)
    5. Classic, unpredictable kernel-native ethX naming (example: eth0)


    You can revert back by adding this to your /etc/default/grub:

    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"
    Run update-grub and reboot. Your interface names will then use the legacy ethX/wlanX names.

    I did this on a few systems so I didn't need to rewrite a bunch of bash scripts

    A great location to find information in systemd is here and here. Most of the examples are using Fedora or Arch, but are exactly the same for Ubuntu - which is the point of systemd to have a unified init system across distributions.
    "Talk is cheap, show me the code." ~ Linus Torvalds

  8. #8
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,807
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Strange network problem after clean install of 16.04.1

    I miss spoke I guess I should have said eth0 is renamed because that is how it is done in 16.04 yes I knew it is called Predictable Network Interfaces, but I am trying to help a lot of people and figured that short explanation would suffice. You did a real nice job of explaining it.
    Thank you!

  9. #9
    Join Date
    Sep 2007
    Location
    Oklahoma, USA
    Beans
    2,378
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    Thanks very much for the added information. Since this seems to be the wave of the future, i need to learn all i can about it. Nos if someone would chime in with some ideas about why the routing table isn't usable after a reboot, with no "default" rule and two "scope link" rules that make all internet access impossible until the table is repaired!
    --
    Jim Kyle in Oklahoma, USA
    Linux Counter #259718
    Howto mark thread: https://wiki.ubuntu.com/UnansweredPo.../SolvedThreads

  10. #10
    Join Date
    Nov 2009
    Location
    Rhode Island
    Beans
    23
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Strange network problem after clean install of 16.04.1

    Quote Originally Posted by JKyleOKC View Post
    Thanks very much for the added information. Since this seems to be the wave of the future, i need to learn all i can about it. Nos if someone would chime in with some ideas about why the routing table isn't usable after a reboot, with no "default" rule and two "scope link" rules that make all internet access impossible until the table is repaired!
    I haven't had any issues with Network Manager on my "normal" installs (however my experience in with Network Mangler in my production environment at work is a different story )

    When Network Manager sees that your interfaces (other than lo) have been configured with /etc/network/interfaces it will display "network not managed", so that's normal. What's definitely weird is that it should "just work" if you are letting it be auto configured as default. Just to clarify, your are not having any issues with other boxes on your network right??

    I'm not sure if your issue is exactly a systemd issue or an Ubuntu issue (there are issues with wireless not coming back online after suspend on some systems caused by Network Mangler not starting back up properly with 16.04)

    As far as using /etc/network/interfaces, I only use that on servers. But should also just work if properly configured. Below are a few example configurations I have used in the past:

    DHCP Configuration:

    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto ${INTERFACENAME}
    iface ${INTERFACENAME} inet dhcp
    Static configuration:

    Code:
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    
    # The loopback network interface
    auto lo
    iface lo inet loopback
    
    # The primary network interface
    auto ${INTERFACENAME}
    iface ${INTERFACENAME} inet static
        address $HostIP
        netmask 255.255.255.0   # Change to your network configuration, but it's probably this...
        network $NetworkIP
        broadcast $BroadcastIP
        gateway $GatewayIP       # Probably your router's IP
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8 8.8.4.4 #list of name servers, also could be the router's IP

    You can also use the ifconfig[deprecated] and ip commands to configure the interfaces, but that's getting a little fancy (and it's not persistent)...
    "Talk is cheap, show me the code." ~ Linus Torvalds

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
  •