To make a static IP in Linux use this :
nano /etc/network/interfaces
to change this:
iface eth0 inet dhcp
to this:
iface eth0 inet static address 192.168.0.10 netmask 255.255.255.0 gateway 192.168.0.1
then restart the network service:
/etc/init.d/networking restart