Micro-Recipe: Setting up a static IP on your Ubuntu Linux
Assuming your static IP is 192.168.0.100, your machine's name is computer, and you're on the mydomain.com domain.
-
nano /etc/network/interface
auto loiface lo inet loopbackauto eth0iface eth0 inet staticaddress 192.168.0.100gateway 192.168.0.1netmask 255.255.255.0
-
nano /etc/hostname
computer
-
nano /etc/resolv.conf
mydomain.com