sudo emacs /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.1.27
netmask 255.255.252.0
gateway 192.168.1.1
sudo /etc/init.d/networking restart
Find great tips, tricks, and tutorials from a ex windows user, who has switched to Linux.