How to set up a static IP address on Ubuntu
Posted: September 29, 2009 at 7:40 pm | Tags: interface, ip address, nameserver, networkAfter an update, the Network Manager crashed. In this situation, the easyest way to set up a static IP address is to edit the configuration files myself. First, I have to remove the Network Manager.
sudo apt-get remove –purge network-manager
The first file to modify is /etc/network/interfaces:
sudo gedit /etc/network/interfaces
Now change eth0 with your setting. This are mine:
auto eth0
iface eth0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1
The second file to edit is /etc/resolv.conf. In this file you can set the name servers:
sudo gedit /etc/resolv.conf
This are my name servers:
nameserver 193.231.233.1
nameserver 193.226.98.2
nameserver 80.96.184.18
The last thing you have to do is to restart the networking:
sudo /etc/init.d/networking restart
The system should be using now the setting defined in the two edited files.

























The Discussion
see what everyone is saying
Nice info, i was looking for this topic