1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Stuck on Network Configuration when Installing Ubuntu Server?

Discussion in 'Linux & Open Source' started by MichaelCropper, Sep 10, 2018.

Tags:
  1. MichaelCropper

    Associate

    Joined: Aug 19, 2018

    Posts: 7

    Not sure what I'm missing here, but when I am installing Ubuntu Server 18.04.1 LTS (Bionic Beaver) the system can't seem to connect to the router, I keep getting the error message saying that no network has been found - Yet, the system is hard wired into the network and is showing up when I view the admin settings on the router, the server is showing up.

    What else can I try to get the system connected so Ubuntu can be installed?

    The fact that the system is showing up on the router settings is strange that the server can't seem to find a connection and keeps telling me that DHCP may not be enabled on the router.
     
  2. AmateurExpert

    Gangster

    Joined: Aug 7, 2017

    Posts: 376

    Location: location location

    The ifconfig command should tell you some useful things such as:
    - the name of the ethernet interface(s)
    - for those interface(s) what the server thinks its IP addresses (v4 and v6) are

    The network settings will be in the /etc/network/interfaces file - it by default should be set to get configuration via dhcp, but if that's not happening for some reason then to troubleshoot you can give it a static configuration.
     
  3. Sp00n

    Capodecina

    Joined: Oct 18, 2002

    Posts: 17,960

    Location: Brighton

    Assuming this is during install so have tried switching TTY (ctrl+alt+F[1-6]) and having a look at syslog/dmesg?
     
  4. Infidelus

    Wise Guy

    Joined: Aug 3, 2012

    Posts: 1,385

    They changed the way networking works in 18.04 (actually it was probably 17.10). Network settings aren't held in /etc/network/interfaces now. Ubuntu uses netplan. Have a look in /etc/netplan/. There should be a 50-cloud-init.yaml (or something similar).

    You'll see something like:

    Code:
    # This file is generated from information provided by
    # the datasource.  Changes to it will not persist across an instance.
    # To disable cloud-init's network configuration capabilities, write a file
    # /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
    # network: {config: disabled}
    network:
        ethernets:
            en02:
                addresses:
                - 192.168.0.69/24
                dhcp4: false
                gateway4: 192.168.0.1
                nameservers:
                    addresses:
                    - 192.168.0.1
                    search: []
        version: 2
    
    The spacing/tab indents are apparently important there too.
     
  5. AmateurExpert

    Gangster

    Joined: Aug 7, 2017

    Posts: 376

    Location: location location

    Ugh - I missed that; I haven't installed any of my 18.04s from scratch. Looks like all the info on netplan (including FAQ, examples and reference manual) is at https://netplan.io
     
  6. WoodyUK

    Soldato

    Joined: Dec 29, 2009

    Posts: 6,121

    How are you installing it as you should be able to enter network settings during installation?

    Feel your pain, netplan just didn't want to work on my first encounter with Ubuntu 18, though as Infidelus pointed out, that could've been due to spacing if it really is that finicky.
     
  7. Infidelus

    Wise Guy

    Joined: Aug 3, 2012

    Posts: 1,385

    You can configure your IP during the Ubuntu Server install. I wasn't too keen on the new install GUI and I found the wording on some of it less than clear (or I was just being particularly thick that day). It definitely wasn't as simple as 'the old way' but as with everything, once you know what you're looking for/at, it's pretty easy.
     
  8. MaxJH

    Associate

    Joined: Feb 22, 2015

    Posts: 5

    From another terminal screen, can you ping the ip address of your router?

    Also can you do DNS lookups?

    e.g.

    dig www.ibm.com