Ubuntu and Unbreaking the Network Interface
Posted on March 28, 2006
Filed Under /dev/null/ | 332 views |
Should you happen to edit your Ubuntu 5.10 /etc/network/interfaces file to the point of unusability you’ll probably want to get it back to this state:
#The loopback network interface
auto lo
iface lo inet loopback# This is a list of hotpluggable network interfaces
mapping hotplug
script grep
map eth0# The primary network interface
auto eth0
iface eth0 inet dhcp
Once it looks like that again, restart the networking:
sudo /etc/init.d/networking restart
To see if your new changes took properly:
/sbin/ifconfig
If it worked you’ll see your new IP address assigned to eth0, You can then try:
ping -c3 microsoft.com
to double-check. This is useful information if you’re going to try to set up your Ubuntu box as a web server, someone should write that down….