Connect to wireless Access Point according to MAC address

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Connect to wireless Access Point according to MAC address

Milan Bartos
Hi all,

I'd like to connect to the wireless AP according to its MAC address.
For example there are two wireless AP

nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime
nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime

and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
ifconfig iwn0 nwid Open up it connects to the first one.

I have googled, but haven't found anything useful.
I'm using OpenBSD 4.6 and wireless NIC is iwn0.

Thanks a lot,

Milan

Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

Daniel Gracia Garallar
'man ifconfig' states you can use bssid parameter to specify your
desired bssid -automatic is the default mode-.

So you may try 'ifconfig iwn0 nwid Open bssid 00:0b:0e:33:ed:00'.

Regards,

Dani

Milin escribiC3:

> Hi all,
>
> I'd like to connect to the wireless AP according to its MAC address.
> For example there are two wireless AP
>
> nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime
> nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime
>
> and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
> ifconfig iwn0 nwid Open up it connects to the first one.
>
> I have googled, but haven't found anything useful.
> I'm using OpenBSD 4.6 and wireless NIC is iwn0.
>
> Thanks a lot,
>
> Milan

Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

Tomas Bodzar-4
In reply to this post by Milan Bartos
Why you Google for something which you can find in man page?

http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html

from this man page :

 bssid bssid
             Set the desired BSSID for IEEE 802.11-based wireless network in-
             terfaces.

     -bssid  Unset the desired BSSID for IEEE 802.11-based wireless network
             interfaces.  The interface will automatically select a BSSID in
             this mode, which is the default.


On Thu, Nov 26, 2009 at 12:27 PM, Milin <[hidden email]> wrote:

> Hi all,
>
> I'd like to connect to the wireless AP according to its MAC address.
> For example there are two wireless AP
>
> nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime
> nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime
>
> and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
> ifconfig iwn0 nwid Open up it connects to the first one.
>
> I have googled, but haven't found anything useful.
> I'm using OpenBSD 4.6 and wireless NIC is iwn0.
>
> Thanks a lot,
>
> Milan
>
>



--
http://www.openbsd.org/lyrics.html

CPB
Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

CPB
In reply to this post by Milan Bartos
Milin wrote:

> Hi all,
>
> I'd like to connect to the wireless AP according to its MAC address.
> For example there are two wireless AP
>
> nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M short_preamble,short_slottime
> nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M short_preamble,short_slottime
>
> and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
> ifconfig iwn0 nwid Open up it connects to the first one.
>
> I have googled, but haven't found anything useful.
> I'm using OpenBSD 4.6 and wireless NIC is iwn0.
>
> Thanks a lot,
>
> Milan
>
>
>  
try man ifconfig.

set the bssid manually, normally this is done automatically

Chris Bennett

--
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders,
give orders, cooperate, act alone, solve equations, analyze a new
problem, pitch manure, program a computer, cook a tasty meal, fight
efficiently, die gallantly. Specialization is for insects.
   -- Robert Heinlein

Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

Nick Guenther
In reply to this post by Tomas Bodzar-4
2009/11/26 TomC!E! BodE>C!r <[hidden email]>:
> On Thu, Nov 26, 2009 at 12:27 PM, Milin <[hidden email]> wrote:
>> Hi all,
>>
>> I'd like to connect to the wireless AP according to its MAC address.
>> For example there are two wireless AP
>>
>> nwid Open chan 6 bssid 00:0b:0e:29:06:40 189dB 54M
short_preamble,short_slottime
>> nwid Open chan 6 bssid 00:0b:0e:33:ed:00 172dB 54M
short_preamble,short_slottime

>>
>> and I'd like to connect to the second one (00:0b:0e:33:ed:00). With
>> ifconfig iwn0 nwid Open up it connects to the first one.
>>
>> I have googled, but haven't found anything useful.
>> I'm using OpenBSD 4.6 and wireless NIC is iwn0.
>>
>> Thanks a lot,
>>
>> Milan
>>
>>
>
>
>
> --
> http://www.openbsd.org/lyrics.html
>
>


> Why you Google for something which you can find in man page?
>
>
http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&apropos=0&sektion=0&man
path=OpenBSD+Current&arch=i386&format=html
>
> from this man page :
>
>  bssid bssid
>             Set the desired BSSID for IEEE 802.11-based wireless network
in-
>             terfaces.
>
>     -bssid  Unset the desired BSSID for IEEE 802.11-based wireless network
>             interfaces.  The interface will automatically select a BSSID in
>             this mode, which is the default.
>
>

Also, the BSSID is not the MAC. It looks like a MAC but it's a
wifi-specific thing (you can have multiple APs on the same BSSID;
that's how you make a wifi cloud).

Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

Tomas Bodzar-4
I know. Just my fault. It was obvious from his question for what he is
looking for so I used "shortcut" :-)

2009/11/26 Nick Guenther <[hidden email]>:
> 2009/11/26 TomC!E! BodE>C!r <[hidden email]>:


>
> Also, the BSSID is not the MAC. It looks like a MAC but it's a
> wifi-specific thing (you can have multiple APs on the same BSSID;
> that's how you make a wifi cloud).

Reply | Threaded
Open this post in threaded view
|

Re: Connect to wireless Access Point according to MAC address

Milan Bartos
Thanks all very much,

the problem is then solved.

Milan



2009/11/26 TomC!E! BodE>C!r <[hidden email]>:

> I know. Just my fault. It was obvious from his question for what he is
> looking for so I used "shortcut" :-)
>
> 2009/11/26 Nick Guenther <[hidden email]>:
>> 2009/11/26 TomC!E! BodE>C!r <[hidden email]>:
>
>
>>
>> Also, the BSSID is not the MAC. It looks like a MAC but it's a
>> wifi-specific thing (you can have multiple APs on the same BSSID;
>> that's how you make a wifi cloud).