Ubuntu Static IP Configuration
May 1, 2009 by: Allen SanfordThese instructions are for Ubuntu but may also apply to a Debian installation. This is actually quite simple. The main thing most people leave when witting these tutorials is removing the dchp3-client. If you don’t remove the dhcp3-client then you are just spinning your wheels because the next time you reboot your are back at a dynamic IP.
# sudo apt-get remove dhcp3-client
Now this will also remove ubuntu-minimal but it want tear anything up it is what you want.
The next thing is to configure your /etc/network/interfaces file
# sudo vim /etc/network/interfaces
Add something similar to the following (Of coarse these values will have to adjusted to fit your network):
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 74.207.227.124 netmask 255.255.255.0 network 74.207.227.0 broadcast 74.207.227.255 gateway 74.207.227.1
Now all you have left to do is restart your networking like so.
# sudo /etc/init.d/networking restart












Hi, good post. I have been wondering about this issue,so thanks for posting. I’ll definitely be coming back to your site.