How-To: Change dhcp to static ip address configuration in Debian

To change ip address configuration, you need to edit file /etc/network/configuration:

vi /etc/network/configuration

Then change line:

iface eth0 inet dhcp

to (replace addresses according to your network configuration):

auto eth0
iface eth0 inet static
 address 192.168.25.3
 netmask 255.255.255.0
 network 192.168.25.0
 broadcast 192.168.25.255
 gateway 192.168.25.2

You can also change DNS servers in file /etc/resolv.conf

Useful tools / links