Disclaimer: I'm totally new to Ubuntu.
I haven't been able to figure this out, and I've looked through a lot of posts online.
I have installed Ubuntu Server on a computer. The system seems unable to connect to the internet.
The /etc/network/interfaces file looks like this:
# The loopback network interface auto lo iface io inet loopback # The primary network interface auto enp0s31f6 iface enp0s31f6 inet static address xxx netmask xxx gateway xxx dns-nameservers xxx
When I try to ping something ("e.g. google.com"), I get "unknown host". I can't install any packages etiher.
When I run "ethtool enp0s31f6" I get lots of stuff that pops up, including "Link detected: Yes". If I unplug the ethernet, "Link detected: No".
I hope I have given enough information. Please let me know if I should add anything else.
I restarted the PC after making the changes to a static address and it now shows the correct IP and info when I do
ifconfig. However, ping still doesn't work.