LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-18-2015, 03:23 PM   #1
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Rep: Reputation: Disabled
Force an Association to One MAC Address?


How can I force my wpa_supplicant to associate with a particular MAC address? I've rtfm'd wpa_supplicant, wpa_cli, and dhclient, but I don't see a clear answer. If it's not possible I'd like to stop wasting my time.

Background: my building has a string of AP's along the hall. Obviously the one closest to me is where I want to associate, but when my lease is renewed (every 26 min!) the new connection is to a more remote AP down the hall.
 
Old 07-20-2015, 02:31 PM   #2
notadoc
Member
 
Registered: Jan 2015
Posts: 113

Original Poster
Rep: Reputation: Disabled
Turns out I didn't rtfm enough. wpa_cli has a command wpa_cli bssid <name of AP> <BSSID , i.e. MAC addres of AP>. That's all there was to it. When my lease expires my client reconnects to the specified MAC.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to force eth0 interface association on IPCop 1.4.18 the_cranky_don Linux - Networking 4 09-17-2010 10:03 AM
how do I find what MAC address web pages see as my MAC address rob.rice General 20 05-29-2010 02:08 AM
Force DHCP To Refuse Clients A DHCP Lease Depending On Client MAC Address blackfish Linux - Server 3 08-17-2007 12:54 AM
Specific AP (MAC address) association on Ubuntu with Cisco a/b/g PCMCIA card glassyr Linux - Wireless Networking 0 02-20-2007 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration