I'm trying to make my raspberry pi move between multiple access points, some using DHCP other are static. I read that using id_str in your wpa_supplicant networks and having the corresponding configuration in /etc/network/interfaces can automatically configure the interface but doesn't look like it's the case in my system. /etc/network/interfaces :auto loiface lo inet loopbackauto eth0allow-hotplug eth0iface eth0 inet dhcpiface eth0 inet6 autoauto wlan0allow-hotplug wlan0iface wlan0 inet dhcpwpa-conf /etc/wpa_supplicant/wpa_supplicant.conf#iface default inet dhcpiface test inet staticaddress 192.168.0.2gateway 192.168.0.1netmask 255.255.255.0/etc/wpa_supplicant/wpa_supplicant.confctrl_interface=DIR=/run/wpa_supplicant GROUP=netdevupdate_config=1network={    ssid=Skynet Defence Network    key_mgmt=WPA-PSK    proto=WPA2    psk=illbeback    priority=10    id_str=test}with this configuration wpa_supplicant connects to the network but the network settings are not set. am i doing something wrong here ?
wpa_supplicant and moving between static and dhcp networks
networking;network interface;wpa supplicant