This is driving me crazy. I can't seem to get a static IP address configured on my WiFi interface (wlan0). I know that my wpa_supplicant.conf
is correct because this same exact file works perfectly when I select dhcp
instead of static
on the iface
statement.
The interface associates with my access point, but I get the error network settings not defined for default in /etc/network/interfaces in my syslog output (posted below).
/etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet static
network 192.168.1.32
netmask 255.255.255.0
gateway 192.168.1.254
dns-nameservers 192.168.1.254
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
syslog
May 21 17:06:04 raspberrypi wpa_supplicant[14738]: wlan0: Trying to associate with **:**:**:**:**:** (SSID='******' freq=2462 MHz)
May 21 17:06:04 raspberrypi wpa_supplicant[14738]: wlan0: Association request to the driver failed
May 21 17:06:04 raspberrypi wpa_supplicant[14738]: wlan0: CTRL-EVENT-DISCONNECTED bssid=**:**:**:**:**:** reason=0
May 21 17:06:04 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
May 21 17:06:04 raspberrypi wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
May 21 17:06:04 raspberrypi wpa_action: ifdown wlan0
May 21 17:06:05 raspberrypi wpa_supplicant[14738]: wlan0: Trying to associate with **:**:**:**:**:** (SSID='******' freq=2462 MHz)
May 21 17:06:05 raspberrypi wpa_supplicant[14738]: wlan0: Association request to the driver failed
May 21 17:06:05 raspberrypi wpa_supplicant[14738]: wlan0: Associated with 00:00:00:00:00:00
May 21 17:06:05 raspberrypi wpa_supplicant[14738]: wlan0: CTRL-EVENT-DISCONNECTED bssid=**:**:**:**:**:** reason=0
May 21 17:06:05 raspberrypi wpa_supplicant[14738]: wlan0: Associated with **:**:**:**:**:**
May 21 17:06:05 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
May 21 17:06:06 raspberrypi wpa_supplicant[14738]: wlan0: WPA: Key negotiation completed with **:**:**:**:**:** [PTK=CCMP GTK=TKIP]
May 21 17:06:06 raspberrypi wpa_supplicant[14738]: wlan0: CTRL-EVENT-CONNECTED - Connection to **:**:**:**:**:** completed (reauth) [id=0 id_str=]
May 21 17:06:06 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
May 21 17:06:06 raspberrypi wpa_action: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
May 21 17:06:06 raspberrypi wpa_action: network settings not defined for default in /etc/network/interfaces
May 21 17:06:06 raspberrypi wpa_action: ifup wlan0=default
May 21 17:06:06 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
May 21 17:06:06 raspberrypi wpa_action: bssid=**:**:**:**:**:**
May 21 17:06:06 raspberrypi wpa_action: ssid=******
May 21 17:06:06 raspberrypi wpa_action: id=0
May 21 17:06:06 raspberrypi wpa_action: mode=station
May 21 17:06:06 raspberrypi wpa_action: pairwise_cipher=CCMP
May 21 17:06:06 raspberrypi wpa_action: group_cipher=TKIP
May 21 17:06:06 raspberrypi wpa_action: key_mgmt=WPA2-PSK
May 21 17:06:06 raspberrypi wpa_action: wpa_state=COMPLETED
May 21 17:06:06 raspberrypi wpa_action: address=**:**:**:**:**:**
May 21 17:06:07 raspberrypi wpa_supplicant[14738]: wlan0: WPA: Group rekeying completed with 00:26:50:15:31:19 [GTK=TKIP]
May 21 17:06:08 raspberrypi wpa_supplicant[14738]: wlan0: WPA: Group rekeying completed with 00:26:50:15:31:19 [GTK=TKIP]
What am I missing?