Before jumping in and making the changes, do
ifconfig -a
and note down any particular settings which you may need (if you don’t already know them)
Then edit /etc/network/interfaces
change:
iface eth0 inet dhcp
to:
iface eth0 inet static
address 10.0.0.101
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.100
May also need to add nameservers to /etc/resolv.conf, eg:
nameserver 10.0.0.100
nameserver 192.122.108.211
Obviously change to suit your network settings.
Once done, don’t forget to restart the networking interface
sudo /etc/init.d/networking restart