Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ibmman69

macrumors member
Original poster
Jan 8, 2008
36
0
Hi,

I followed the instructions here:

http://osxdaily.com/2007/01/18/airport-the-little-known-command-line-wireless-utility/

to use the airport from the command line. The problem is, I cannot get any of the functions to work except association via SSID. I cannot set a channel on the card and I cannot associate via BSSID. I have tried every iteration of those commands I could come up with to no avail. Could someone please give me an example of a command that works on their computer?

I am running 10.5.1 on a C2D MB.

Thanks in advance.
 
Connecting Airport to a specific BSSID

This worked to me:

1. Open Terminal

2. Create a symbolic link for the airport Command-line tool:

cd /usr/sbin
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport

3. Perform a wireless broadcast scan:

airport -s

4. Copy the BSSID of the router or wireless expander you want to connect:

Example after performing a scan:

SSID Security Ch Sig Vr ID IE BSSID WPA (Auth[]), (Cipher[])
Rey WEP 6 -22 -1 0 0 00:1a:70:33:50:4f 0 (0,0,0,0), (0,0,0,0)
Rey WEP 6 -65 -1 0 0 00:19:5b:e1:4a:1e 0 (0,0,0,0), (0,0,0,0)


5. Associate with it:

airport --associate=[SSID] --bssid=[BSSID] --password=[WEP or WPA PASSWORD]

Example:

airport --associate=Rey --bssid=00:1a:70:33:50:4f --password=12345678

That's ALL !! :rolleyes:

Hope this HELP ;)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.