LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-10-2008, 02:00 PM   #1
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Selecting a specific AP MAC address in rc.inet1.conf[SOLVED]


Quick question:

I want to specify which AP to connect to in my rc.inet1.conf file by MAC address to resolve the issue of multiple identically named ESSID's.

Associating by ESSID name only seems to give priority to the one of highest signal strength which is not ideal in many cases.

I know you can do a "iwconfig ap yy:xx:yy:xx:yy:xx" manually, but how do I define this in my rc.inet1.conf file?

Thanks in advance.

Last edited by Alstare; 11-10-2008 at 03:31 PM.
 
Old 11-10-2008, 02:50 PM   #2
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
In the default Slackware distribution, /etc/rc.d/rc.wireless.conf has examples of selecting an interface or range of interfaces by MAC address.
 
Old 11-10-2008, 03:05 PM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can specify any additional iwconfig parameter not covered by the exposed keywords in rc.inet1.conf using the WLAN_IWCONFIG keyword:
For instance your "iwconfig ap y:xx:yy:xx:yy:xx" command would translate to the following line (assuming your wireless card uses index [4]):

Code:
WLAN_IWCONFIG[4]="ap y:xx:yy:xx:yy:xx"
Note: if you want to add more iwconfig settings, add all of them to the single WLAN_IWCONFIG line. Multiple WLAN_IWCONFIG lines in rc.inet1.conf are useless, because only the last one will be used.

Eric
 
Old 11-10-2008, 03:31 PM   #4
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
In the default Slackware distribution, /etc/rc.d/rc.wireless.conf has examples of selecting an interface or range of interfaces by MAC address.
That is for selecting which internal wireless interface you would like to use I believe. I was looking to select a specific AP not interface.

Quote:
You can specify any additional iwconfig parameter not covered by the exposed keywords in rc.inet1.conf using the WLAN_IWCONFIG keyword:
For instance your "iwconfig ap y:xx:yy:xx:yy:xx" command would translate to the following line (assuming your wireless card uses index [4]):

Code:

WLAN_IWCONFIG[4]="ap y:xx:yy:xx:yy:xx"

Note: if you want to add more iwconfig settings, add all of them to the single WLAN_IWCONFIG line. Multiple WLAN_IWCONFIG lines in rc.inet1.conf are useless, because only the last one will be used.

Eric
Thanks that was exactly what I was looking for!

I was trying "WLAN_AP[4]=" assuming the iwconfig was implied automatically. This clears up my issues. Also the information about only 1 IWCONFIG line is extremely helpful.

Thanks again guys, issue resolved!
 
Old 11-18-2008, 11:51 AM   #5
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
>> Alien Bob

This raises the question of how to similarly configure multiple wireless cards, would I then have to move to iproute ?

Last edited by mudflap; 11-19-2008 at 07:20 PM. Reason: typo
 
Old 11-18-2008, 01:16 PM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by mudflap View Post
>> Alien Bob

This raises the question of how to similarly configure muptiple wireless cards, would I then have to move to iproute ?
Why do you think you would need that?

Eric
 
Old 11-19-2008, 02:20 PM   #7
mudflap
Member
 
Registered: Jul 2008
Location: Coffin Point
Distribution: Slackware - ttylinux - CPO
Posts: 53

Rep: Reputation: 15
>> Alien Bob

Why?

I wish to to extend a wireless network with existing hardware. The available inventory includes various pci cards: rt2500's rt61's, a realtek and a broadcom; as well as several wireless routers. None of these pci cards (so far as I am aware) are capable of AP mode.

The anchor is an atheros pci card in master mode [stn1]. The primary client connection [stn2] is an rt61 with directional antenna.

Stn3 is a laptop and cannot be fitted with an external antenna, although antenna location is critical. Stn3 cannot see stn1, and can (almost) see but not connect with stn2.

My intention was to connect stn3 through one of the routers (to allow a sane user location), and configure stn2 with a second wireless card. Experience proves placing a wireless router too close to stn2 is a really bad idea.

To diverge slightly, I hoped a solution for this would hint at how I might provide discrete gateways for each network device via rc.inet1.conf
 
  


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
DHCP Assign ip to specific MAC address gfem Linux - Networking 2 08-02-2007 02:58 PM
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
Restricting access to a specific port by MAC address caps_phisto Linux - Networking 3 10-23-2006 01:55 PM
get mac address given a specific interface kpachopoulos Programming 6 06-07-2006 02:41 AM
Set MAC/HW Address in /etc/rc.d/rc.inet1.conf? TotalDefiance Slackware 6 09-29-2005 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:21 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