In my office there are three available interfaces. Plus, I go to a coffee shop when on the road.
1. wired
2. My wpa encrypted wireless.
3. The neighbors unencrypted network in the office next door.
4. The coffee shop.
The problem ....
When I boot my notebook at my office desk, sometimes it connects with the wired connection, or sometimes with my encrypted wireless, and sometimes my neighbor's network.
I commented out the part of wpa_supplicant that enables you to connect to insecure networks to prevent connecting to the neighbor's network. However, that also disables connections at the coffee shop.
My question.... I want to be able to connect according to order of priority.
First wired (fastest), second my encrypted wireless when I am away from the desk. And third is the coffee shop. And of course, I do
not want to connect to the other office.
How do I configure for that order of priority?
Here is my current setup:
Madwifi, atheros chipset. netgear wg511t
rc.inet1.conf
Code:
# Config information for eth0:
FNAME[1]="eth0"
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]="yes"
DHCP_HOSTNAME[0]=""
# Config information for ath0:
IFNAME[1]="ath0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
WLAN_WPA[1]="wpa_supplicant"
WLAN_WPADRIVER[1]="wext"
wpa_supplicant
# WPA protected network, supply your own ESSID and WPAPSK here:
network={
proto=WPA
key_mgmt=WPA-PSK
ssid="*****"
psk=*******************************************************
}
# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
#network={
# key_mgmt=NONE
# priority=0
#}