I've previously been able to connect to an open WiFi network on a BeagleBone with a WiFi dongle by adding the following to /etc/network/interfaces
:
auto wlan0
allow-hotplug wlan0 # For automatic connection
iface wlan0 inet dhcp
wireless-essid OpenNetwork
However, this just doesn't seem to work anymore. I've tried multiple BeagleBones and multiple WiFi adapters, but I always get something like this:
$ ifup wlan0
Listening on LPF/wlan0/b4:75:0e:1f:2c:b4
Sending on LPF/wlan0/b4:75:0e:1f:2c:b4
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
What's weird is that I am able to connect with the following:
iwconfig wlan0 essid OpenNetwork && dhclient wlan0
Any suggestions?
auto wlan0
statement. I deleted my changes and added only theallow-hotplug
,iface
andwireless-essid
lines and now it works? – Chris Watts Sep 29 '15 at 18:11