Configure a static IP

Edit the section of the file  that configures the wired interface to look like this:

auto eth0 iface eth0 inet static address 192.168.2.2 netmask 255.255.255.0 gateway 192.168.2.1 dns-nameservers 8.8.8.8 The  entry is optional.
 * 1) Wired or wireless interfaces
 * 1) iface eth0 inet dhcp