# # Original File # ------------- # http://www.Linux-Wireless.org/Install-HOWTO/madwifi.txt # http://www.Linux-Wireless.org/Install-HOWTO/Commands.iwconfig.txt ( this file ) # http://www.Linux-Wireless.org/Install-HOWTO/NetGear.WG311.Install.RedHat.txt # # # 20-Apr-04 amo Sepaarate out the commands # 04-Jun-04 amo Moved to Linux-Wireless.org # 30-Jun-04 amo Added ESSID, BSSID # # # # WEP Key Options # --------------- # http://www.Linux-Wireless.org/Install-HOWTO/Commands.iwconfig.key.txt # # # Operation mode : Ad-Hoc, Managed, Master, Repeater, Secondary, auto # -------------- # http://kbserver.netgear.com/kb_web_files/N100683.asp # Ad-hoc - uses BSSID = Basic Service Set Identification # Managed - uses ESSID = Extended Service Set Identification # # # the node is the synchronisation master or act as an Access Point # MODE="Master" # # # Ad-Hoc network composed of only one cell and without Access Point # MODE="Ad-Hoc" # # # Managed node connects to a network composed of many Access Points # MODE="Managed" # # # If yo want to sniff the wireless connections # MODE="Monitor" # # # For wireless clients # MODE="auto" # # # # Config Options # --------------- # http://www.sodan.ecc.u-tokyo.ac.jp/~okayama/memo/atheros.shtml # http://www.atre.t.u-tokyo.ac.jp/seminars/mech_enshu/wirelesslan.html # # http://www.wlanfr.net/forum.php?op=mess&pid=1336 # iwconfig ath0 mode ad-hoc # # http://www.sistemistiindipendenti.org/pdf/wireless_dlink.pdf # # http://mtlin.org/blog/archives/000021.html # iwlist ath0 scan list AP's the driver has scanned # iwconfig ath0 essid "foo" set the ssid to foo # iwpriv ath0 mode 1 lock operation to 11a only # iwpriv ath0 mode 2 lock operation to 11b only # iwpriv ath0 mode 3 lock operation to 11g only # iwpriv ath0 mode 0 autoselect from 11a/b/g (default) # # echo 1 > /proc/sys/net/ath/debug enable console msgs from the driver # echo 1 > /proc/net/wlan0/debug enable console msgs from the wlan module # echo hal > /proc/sys/net/ath/dump dump h/w register state to the console # # # Status # ---------- # iwconfig # iwlist # cat /proc/net/wireless # # # # /etc/modules.conf # ---------------- # ... # alias wlan0 hostap_pci # post-install wlan0 iwconfig wlan0 my-essid supernet mode managed \ # rate auto auto key XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XX open # ... # # # # Configure the Connection # ------------------------ # iwlist ath0 scan # # ifconfig ath0 up # # iwconfig ath0 key XXXXXXXXXX # # iwconfig ath0 ap MAC-Address # # iwconfig ath0 mode ad-hoc < ad-hoc | managed > # iwconfig ath0 channel 1 < 1 -11 > # iwconfig ath0 essid your_essid_here # iwconfig ath0 rate 54MB # ifconfig ath0 192.168.1.11 # # # # iwconfig Options # ---------------- # iwconfig ath0 mode ad-hoc channel 10 rate 54M auto essid special-ID # < ad-hoc | managed > # # # iwconfig # -------- # lo no wireless extensions. # eth0 no wireless extensions. # ath0 no wireless extensions. # ( No wireless extensions ---> is a bad thing --> wireless card is NOT recognized ) # # # iwconfig Errors # ----------------- # # Error for wireless request "Set Mode" (8B06) : # SET failed on device ath0 ; Invalid argument. # ath0 no private ioctls. # # Error for wireless request "Set Encode" (8B2A) : # SET failed on device ath0 ; Invalid argument. # # # Find some supported channels # ---------------------------- # iwlist eth1 channel # # # Find the local hotspots # ------------------------ # iwlist scan # lo Interface doesn't support scanning. # eth0 Interface doesn't support scanning. # ath0 No scan results # ( No scan results ---> is a bad thing ) # # # http://linux-ip.net/html/tools-route.html # route commands # # # End of file