ip addr
auto eth0 iface eth0 inet static address 192.168.18.222 netmask 255.255.255.0 gateway 192.168.18.254 dns-nameservers 192.168.18.254
auto eth0 iface eth0 inet dhcp
/etc/init.d/networking restart