When I issue the command
iwconfig wlan0 essid NAME
it sometimes takes a really long time to actually be able to view any webpages through a browser. I don't know why that is. Right now the /etc/network/interfaces file contains the following:
allow-hotplug wlan0
iface wlan0 inet dhcp
# wireless-* options are implemented by the wireless-tools package
wireless-mode managed
wireless-essid NAME2
when I boot, there's never any issue like this. I never have to wait. So I tried changing NAME2 to NAME and the same problem remained. What can I do about this?
What I really want is for debian to just connect automatically to either NAME or NAME2 or any open wireless connection. I'm not sure whether this requires configuration in /etc/network/interfaces or /etc/NetworkManager/NetworkManager.conf. I'm currently trying to find examples of how to configure the files. So my questions are
- how do I make the appropriate configuration?
- do I even need the network-manager to do this?