Debian Linux, from DHCP to static IP

       48 words, 1 minutes

Switching from DHCP to static IP on a Debian system requires only a few steps:

# /etc/init.d/networking stop
# vi /etc/network/interfaces
(...)
allow-hotplug eth0
#iface eth0 inet dhcp
iface eth0 inet static
	address 192.168.0.62
	netmask 255.255.255.0
	gateway 192.168.0.1
	broadcast 192.168.0.255
	network 192.168.0.0
(...)
# reboot

That’s All Folks!