nano /etc/network/interfaces
Per settare in DHCP:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
Per settare impostare manualmente l'IP:
auto eth0
iface eth0 inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.254