Ubuntu 12.04 Networking on fresh install
August 30, 2012 Leave a comment
Whenever I setup a new ubuntu install, networking never seems to work out of the box. Here are the steps to get it working
Press Alt + F2 and type in ‘Terminal’
Edit the line that says
iface eth0 inet manual
replace the word manual with dhcp. It should look like this
iface eth0 inet dhcp
Save the file and exit nano
Enter the following commands one at a time
sudo ifdown eth0
sudo ifup eth0
sudo service networking stop
sudo service networking start
You can then test your connection is working by entering
ping -c3 184.108.40.206
If you got a reply then internet is working. Go through all the steps again and double check they were entered correctly. If all else fails, restart the computer.
So people new to linux might wonder what all those commands were.
Basically you edited a file that sets the ethernet port to get an ip address from a dhcp server instead of assigning itself one. Then you turned off the ethernet port and turned it back on. Finally you restarted the program that manages the connection to the internet.