Airport Command Line Utility

Discussion in 'macOS' started by ibmman69, Jan 31, 2008.

  1. ibmman69 macrumors member

    Joined:
    Jan 8, 2008
    #1
    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.
     
  2. difelice macrumors newbie

    Joined:
    Sep 28, 2008
    #2
    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 ;)
     

Share This Page