source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface HEMMA_STATIC inet static
address 192.168.4.60
netmask 255.255.255.0
gateway 192.168.4.1
broadcast 192.168.4.255
dns-nameservers 192.168.4.1
iface GYMMET_DHCP inet dhcp
- /etc/wpa_supplicant/wpa_supplicant.conf
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="HEMMANAETET"
psk="PASSWORD_HEMMA"
id_str="HEMMA_STATIC"
priority=15
}
network={
ssid="GYMMET"
psk="MY_SECRET_PASSWORD"
id_str="GYMMET_DHCP"
priority=15
}