pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.9.97
netmask 255.255.255.0
gateway 192.168.9.68
dns-nameservers 8.8.8.8
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface mywifi inet static
address 192.168.0.68
gateway 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
/etc/network/interfaces
wpa_supplicant.conf
pi@raspberrypi ~ $ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="FAST_12"
#psk="12345678"
psk=7f53f4ec7e2cbb709b7f1a58537a0933ef7ccf74faffc58b5f906aef6a53fd51
id_str="mywifi"
}