On 11/26/2012 05:25 AM, Per Jessen wrote:
Mark Hounschell wrote:
I am trying to force a desktop wireless connection to use a specific AP. I see in Yast network config where I can put the mac address of the AP I want to use but it doesn't seem to work and _most_ always picks one I don't want it to use. Using network manager obviously works correctly but I must use traditional ifup on this box. How can I force it to use the AP I want it too?
I have a /etc/sysconfig/network/ifcfg-wlan0 with this:
WIRELESS_ESSID='BERGSTRASSE'
I just edit the file, but there is no doubt also a way of doing it with YaST.
I have a centrally located wireless router and 2 range extenders. One on each end of the house. That's 3 Access Points all with the same ESSID. They are differentiated by their mac addresses. Using networkmanager, I see all 3 and can select the one I want. Using ifup and Yast to configure it my ifcfg-wlan0 comes out like this. BOOTPROTO='static' BROADCAST='' ETHTOOL_OPTIONS='' IPADDR='172.16.10.102/24' MTU='' NAME='802.11n WLAN Adapter' NETWORK='' REMOTE_IPADDR='' STARTMODE='hotplug' USERCONTROL='no' WIRELESS_AP='20:aa:4b:b2:dd:79' ! This is the AP I want to use WIRELESS_AP_SCANMODE='1' WIRELESS_AUTH_MODE='psk' WIRELESS_BITRATE='auto' WIRELESS_CA_CERT='' WIRELESS_CHANNEL='' WIRELESS_CLIENT_CERT='' WIRELESS_CLIENT_KEY='' WIRELESS_CLIENT_KEY_PASSWORD='' WIRELESS_DEFAULT_KEY='0' WIRELESS_EAP_AUTH='' WIRELESS_EAP_MODE='' WIRELESS_ESSID='hounschell-1' WIRELESS_FREQUENCY='' WIRELESS_KEY='' WIRELESS_KEY_0='' WIRELESS_KEY_1='' WIRELESS_KEY_2='' WIRELESS_KEY_3='' WIRELESS_KEY_LENGTH='128' WIRELESS_MODE='Managed' WIRELESS_NICK='' WIRELESS_NWID='' WIRELESS_PEAP_VERSION='' WIRELESS_POWER='no' WIRELESS_WPA_ANONID='' WIRELESS_WPA_IDENTITY='' WIRELESS_WPA_PASSWORD='' WIRELESS_WPA_PSK='************' But what happens is it selects the Access Point at the other end of the house not the one specified in the config file as you can see below. wlan0 IEEE 802.11bgn ESSID:"hounschell-1" Mode:Managed Frequency:2.437 GHz Access Point: C8:D7:19:7A:AB:1E Bit Rate=150 Mb/s Tx-Power=20 dBm Retry long limit:7 RTS thr=2347 B Fragment thr:off Encryption key:off Power Management:off Link Quality=66/70 Signal level=-44 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:9 Missed beacon:0 The kernel never even tries the one specified in the config file: [ 19.876977] wlan0: authenticate with c8:d7:19:7a:ab:1e [ 19.901616] wlan0: send auth to c8:d7:19:7a:ab:1e (try 1/3) [ 19.904099] wlan0: authenticated [ 19.916679] wlan0: associate with c8:d7:19:7a:ab:1e (try 1/3) [ 19.925839] wlan0: RX AssocResp from c8:d7:19:7a:ab:1e (capab=0x411 status=0 aid=2) [ 19.925975] wlan0: associated [ 19.925988] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready This access point is at the other end of the house and even though it says its connected, it is just too far away to work and doesn't. Thanks Mark -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org