Configure static IP on Linux (ubuntu)
2009-01-10 at 10:16 am databasemindnano /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.104
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
And save it.
Now move on to edit the /etc/resolv.conf.
And add the name server.
nameserver 192.168.1.1
Another way to configure static IP address
ifconfig eth0 192.168.1.104 netmask 255.255.255.0 up
Here is also a great resource on how to configure static IP on linux
http://www.ubuntugeek.com/how-to-set-a-static-ip-address-in-ubuntu-810-intrepid-ibex.html
http://linhost.info/2008/11/how-to-set-a-static-ip-on-ubuntu-810/