Tags

, , , , , , ,

Wireless problems often baffle me — so let’s postpone that for another post; right now we’ll focus on the wired network problems which is less common than the other one!

While using Ubuntu based systems, I often found that network manager just got into the way whenever I wanted to fix an internet connection. So, first thing to do is to kill the associated processes (kill -9) after you find the process ID by using top or htop (if installed). Or you can totally get rid of these packages (usually network-manager, network-manager-gnome in Gnome or knetworkmanager in KDE).

Then, edit /etc/network/interfaces file (you need to precede it by sudo) so that the lines for wired interface (usually eth0 — find this by issuing sudo ifconfig , first) look like the following:

auto eth0
iface eth0 inet dhcp

again assuming that we want to have a DHCP based connecton (which is the case most of the time and it’s, ofcourse, easier to fix!).

Then restart the network connection by issuing the following command:
sudo /etc/init.d/networking restart

And then bring eth0 first down, then up using
sudo ifdown eth0; sudo ifup eth0

This should be the first step toward troubleshooting the wired internet connection. The things starts getting just better if these steps fail ……well, let’s leave that for another post.

Advertisements