auto eth0 iface eth0 inet static address 192.168.4.1 netmask 255.255.255.0 gateway 192.168.4.102 up echo nameserver 8.8.8.8 > /etc/resolv.conf