Changing the IP address of a Raspberry PI to static

Edit /etc/network/interfaces

Change

[code]

iface eth0 inet dhcp

to

iface eth0 inet static

and below enter

address 192.168.100.1
netmask 255.255.255.0
network 192.168.100.0
broadcast 192.168.100.255
gateway 192.168.100.254

[/code]