Ubuntu 14.04 Network Problem

I have an issue with my Ubuntu 14.04. I am able to connect to wireless networks without any problems, but when I am in my Dorm Room, I cannot connect to my wired Internet connection. It works fine under Windows by just using DHCP settings, but it does not seem to be working under Ubuntu. It just says that it has no connection.

Any ideas?

Results for

ifconfig -a

eth0      Link encap:Ethernet  Hardware Adresse f4:6d:04:1f:7d:69  
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          RX-Pakete:40 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:28 Fehler:0 Verloren:0 Überläufe:0 Träger:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX-Bytes:5370 (5.3 KB)  TX-Bytes:5511 (5.5 KB)

lo        Link encap:Lokale Schleife  
          inet Adresse:127.0.0.1  Maske:255.0.0.0
          inet6-Adresse: ::1/128 Gültigkeitsbereich:Maschine
          UP LOOPBACK RUNNING  MTU:65536  Metrik:1
          RX-Pakete:4804 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:4804 Fehler:0 Verloren:0 Überläufe:0 Träger:0
          Kollisionen:0 Sendewarteschlangenlänge:0 
          RX-Bytes:403965 (403.9 KB)  TX-Bytes:403965 (403.9 KB)

wlan0     Link encap:Ethernet  Hardware Adresse 48:5d:60:95:45:2d  
          UP BROADCAST MULTICAST  MTU:1500  Metrik:1
          RX-Pakete:952361 Fehler:0 Verloren:0 Überläufe:0 Fenster:0
          TX-Pakete:527740 Fehler:0 Verloren:0 Überläufe:0 Träger:0
          Kollisionen:0 Sendewarteschlangenlänge:1000 
          RX-Bytes:1424038871 (1.4 GB)  TX-Bytes:61999960 (61.9 MB)

and

netstat -rn

Kernel-IP-Routentabelle
Ziel            Router          Genmask         Flags   MSS Fenster irtt Iface

This is when my laptop has the ethernet cable connected. I just get the same message I would get if I had the cable disconnected. So I do net even get an IP Adress from DHCP Server. The results posted are without wireless connected, since I only have a wired connection in my Dorm room.


Solution 1:

From my experience a few months ago, doing a

    sudo service network-manager restart

fixed my unstable and unreliable internet connection on Ubuntu 14.04. I also updated my kernel version.

By "no connection" do you mean no internet access or you're not being allocated an IP address from the DHCP server at all?

Solution 2:

Try typing sudo vi /etc/network/interfaces. Now use the vi editor to edit the following text.

It should look like this:

auto lo
iface lo inet loopback
~
~
...

Now add to it so it looks like this:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

ignore the ~'s while doing this. To edit the file in vi press i (insert). To save and exit, press the <esc> key then type :wq. You should be able to connect via Ethernet now.