Configure Static IP
From LinodeWiki
To stop your Linode from getting the network addresses (IP, subnet mask, gateway, resolv.conf etc..) info from the Linode DHCP server is good to configure a static IP.
Remove or comment the line that configures DHCP
#iface eth0 inet dhcp
Add the following info auto eth0 to the /etc/network/interfaces file
iface eth0 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.254
Reboot the linode server to get the static address set.
/etc/init.d/networking restart
Edit /etc/hosts and add your new IP addresses:
127.0.0.1 localhost.localdomain localhost server1 192.168.0.1 server1.example.com server1 # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts
NOTE: remember to change the values of your IP addresses [1]
