ubuntu networking troublshoot

Check the adapter state:

sudo lshw -C network

Make the network connection active:

sudo ifconfig eno1 up

Manually set the ipv4 setting for the ethernet adapter

sudo ifconfig eno1 192.168.0.15 netmask 255.255.255.0

Set the default gateway

sudo route add default gw 192.168.0.1 eno1

Set the defualt nameserver:

echo "nameserver 8.8.8.8" > /etc/resolv.conf

THE ABOVE IS BASICALLY ALL YOU NEED TO GET IT WORKING

i now get permission denied doing the above command even as root, permissions for the file resolv.conf are actually for anyone to be able to edit

lrwxrwxrwx   1 root root       39 Jul  1 23:03 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf

so it's a little strange, looking at the file the nameserver is:

    nameserver 127.0.0.53

so i'm changing it to: 8.8.8.8

so trying to save resolv.conf i get:

    could not save file too many levels of symbolic links

    a@a-Z97-D3H:/etc$ ls -al | grep resolv.conf
    lrwxrwxrwx   1 root root       39 Jul  1 23:03 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf


i have changed both files in: /run/systemd/resolve

to have a name server of: 8.8.8.8

These two are not that useful

lspci -nnk

lspci -nnk | grep -A2 net
Posted @ 2019-02-28 13:04