I have installed Ubuntu Server 18.04 LTS (from here) on my Dell Server. Unfortunately, it seems like it doesn't connect to the internet. One point though - during its installation, the network configuration had failed, and I had to manually put in the IP address, netmask, gateway etc. I gave it the values corresponding to the network my ethernet cable is in. (Using the ethernet cable to connect my server with a wifi router).
I checked various websites, and my issue don't relate to any because, unlike most of them I have an eth interface, my
/etc/netplan/01-netcfg.yaml file shows the exact values of IP address etc. that I had filled in at the time of installation. My
/etc/network/interfaces file is complete i.e. it mentions
eno1 (my ethernet interface). And my
/etc/resolv.conf file also has the nameserver similar to the one I filled in at the time of installation.
I suspect the ubuntu server isn't connected to internet because:
- can't ping to anything except localhost. The error is -
No route found.
ip addr showdon't show any IP addresses.
As a result of this, I can't do
sudo apt-get update (fails with
couldn't fetch from archive. Based on some stack overflow answers, I realized it is the internet issue but once again, none of their answers helped as I explained above).
To whoever who helps - I owe you big time!
Output - all interfaces are DOWN
dmesg | egrep -i 'net|eth'
I guess the most important output is eno1 link not ready
sudo lshw -C network
ls -al /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Aug . 1 06:45 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
nameserver 127.0.0.53 options edns0
auto lo iface lo inet loopback auto eno1 iface eno1 inet static address 192.168.1.70 netmask 255.255.255.0 gateway 192.168.1.254 broadcast 192.168.1.255
network: version: 2 renderer: networkd ethernets: eno1: addresses: [192.168.1.70/24] gateway4: 192.168.1.254 nameservers: addresses: "192.168.1.254"