Ubuntu – Server wont connect to network; cannot find device eth0


ive looked through several of posts here on related issues and the attempts ive made all seem to lead to the same result, that eth0 is not configured or discoverable.

i have a new 17.04 server, on a laptop which had successful wifi connection. wifi light wont come on. when i ping google, it says 'name or service not known'. have no wired access to connect to until tomorrow. i do have a live usb of the installer available to boot into recovery mode if that would help.

some results so far;

sudo ifup eth0


internet systems consortorium DHCP client 4.3.5.
can not find device "eth0"
error getting hardware address for "eth0": no such device
failed to bring up eth0

sudo ifdown eth0
ifdown:interface eth0 not configured

sudo ifconfig eth0 up
eth0 error while getting interface flags: no such device

some shots from other results;

interfaces file

also the above photo i added the lines "#the primary network interface, auto eth0 iface eth0 inet dhcp"

also photo from ifconfig -a

enter image description here

also sorry im not knowledgeable of networking really

Best Answer

I suggest that you edit the file /etc/network/interfaces to replace the eth0 entry with wlp3s0 and add the SSID and encryption details, like this:

auto lo
iface lo inet loopback

auto wlp3s0
iface wlp3s0 inet dhcp
wpa-ssid <your_router>
wpa-psk <your_wpa_key>

So that you can ssh and ftp into it, I actually recommend a static address, not DHCP, however, let's get connected first and then proceed.

Reboot and tell us if you are connected:

ping -c3 www.ubuntu.com


If you wish to use ethernet as you indicated in your comments, then the sequence is:

auto lo
iface lo inet loopback

auto enp2s0f0
iface enp2s0f0 inet dhcp


Related Question