Ubuntu: Cant access Internet through wired connection


I downloaded and installed Ubuntu using the Windows installer. Everything is running smoothly. When I plug in my ethernet cable is recognizes that it is plugged in and says that I am connected. Whenever I try to access Firefox it says Firefox cannot locate the server. Any suggestions? I am very new to Linux as well as using cmd prompts for the terminal.


Lets see if its a DNS issue.

Type Network in your search and then open Network Connections. Under Wired you should see a connection named Auto eth0 as seen below.

Network Connections

Click Edit from the right and enter your password and you should see a window similar to the one below.

Connection Info

Now change the method to Automatic (DHCP) addresses only and down the bottom next to DNS servers enter, as seen below. These are DNS servers provided by Google and are very reliable.

DNS Settings

Now click Save down the bottom and lastly lets restart your network connections to make sure we are using the new settings. The easiest way is to turn your network off and on again as seen in the image below. But if you are comfortable with the terminal type Terminal in your search and open it up then type the following to restart your network connections.

$sudo service networking restart  

Network Reset

Now lets check before trying the internet again so type Network in your search again and this time choose Network and you should see something similar to the image below.

Check Settings

Now try your browser again and let me know how you go.


  • Check what's in /etc/resolv.conf ( if you can paste the output that will help).
  • Also do 'route -n' and paste the output.

The reason why its not working could be the following. - Gateway is not reachable ( or there is a alternate gateway configured which is also not reachable )
- DNS server is not reachable

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »