iwconfig --helpDisplays the help message listing all available command line parameters and arguments
The legacy wireless-extensions tool for viewing and setting interface parameters like mode, channel and power. Prefer iw on modern systems.
sudo apt install wireless-toolsiwconfig wlan0 essid "LabNetwork"Configures the interface to connect to a network with the specific name LabNetwork
iwconfig wlan0 essid offDisables the ESSID configuration allowing the driver to attempt association with any available network
iwconfig wlan0 essid anyConfigures the interface to accept any ESSID which is useful for roaming or initial site surveys
iwconfig wlan0 mode managedSets the interface to managed mode for standard client connection to an Access Point
iwconfig wlan0 mode monitorSets the interface to monitor mode for passive packet capture and security assessment
iwconfig wlan0 mode ad-hocConfigures the interface for peer-to-peer communication without a central Access Point
iwconfig wlan0 mode masterAttempts to set the interface to Master mode to act as an Access Point (driver dependent)
iwconfig wlan0 mode repeaterSets the interface to repeater mode to forward packets between other wireless nodes
iwconfig wlan0 mode secondaryConfigures the interface as a secondary backup master/repeater if supported by hardware
iwconfig wlan0 channel 6Forces the wireless interface to operate specifically on channel 6
iwconfig wlan0 channel autoAllows the driver to automatically select the best available channel
iwconfig wlan0 freq 2.412GSets the operating frequency explicitly to 2.412 GHz (Channel 1)
iwconfig wlan0 freq 5.220GSets the operating frequency explicitly to 5.220 GHz for 5GHz band operation
iwconfig wlan0 ap 00:11:22:33:44:55Forces the client to associate only with the Access Point matching the specified MAC address
iwconfig wlan0 ap anyRemoves specific AP locks and allows association with any AP responding to the ESSID
iwconfig wlan0 ap offPrevents the interface from associating with any Access Point
iwconfig wlan0 rate 54MSets the transmission bitrate to a fixed speed of 54 Megabits per second
iwconfig wlan0 rate autoEnables automatic rate scaling to adjust speed based on signal quality
iwconfig wlan0 rate 11M fixedForces the card to use 11Mbps and prevents it from dropping to lower speeds
iwconfig wlan0 rate 5.5M autoSets the maximum bitrate to 5.5Mbps but allows the driver to lower it if interference occurs
iwconfig wlan0 txpower 30mWSets the transmission power output to exactly 30 milliwatts
iwconfig wlan0 txpower 15Sets the transmission power output to 15 dBm
iwconfig wlan0 txpower autoAllows the radio hardware to manage its own power output levels
iwconfig wlan0 txpower offDisables the radio transmitter completely effectively turning on airplane mode for that interface
iwconfig wlan0 power onEnables power management features allowing the card to sleep when idle to save battery
iwconfig wlan0 power offDisables power management forcing the card to stay awake for maximum performance
iwconfig wlan0 power timeout 500msSets the time the card waits before entering sleep mode to 500 milliseconds
iwconfig wlan0 power period 2sSets the cycle period between wake-ups to 2 seconds
iwconfig wlan0 rts 250Sets the RTS/CTS handshake threshold to 250 bytes to reduce collisions in hidden node scenarios
iwconfig wlan0 rts offDisables the RTS/CTS mechanism entirely
iwconfig wlan0 frag 512Sets the fragmentation threshold to 512 bytes causing larger packets to be split
iwconfig wlan0 frag offDisables packet fragmentation ensuring packets are sent whole regardless of size
iwconfig wlan0 key offDisables all WEP encryption keys on the interface
iwconfig wlan0 key 0123-4567-89Sets the WEP encryption key using hex digits
iwconfig wlan0 key s:passwordSets the WEP encryption key using an ASCII string
iwconfig wlan0 key openSets the authentication mode to Open System
iwconfig wlan0 key restrictedSets the authentication mode to Restricted (Shared Key) requiring a valid key to associate
iwconfig wlan0 key [1] 0123456789Sets the WEP key specifically for index slot 1
iwconfig wlan0 nick "MyNode"Sets the station nickname used in some legacy diagnostics and protocols
iwconfig wlan0 retry 7Sets the maximum number of retransmissions for a failed packet to 7
iwconfig wlan0 retry short 4Sets the retry limit specifically for packets smaller than the RTS threshold
iwconfig wlan0 retry long 7Sets the retry limit specifically for packets larger than the RTS threshold
iwconfig wlan0 commitForces the driver to apply pending configuration changes immediately
iwconfig wlan0 mode monitor channel 6Quickly sets the interface to monitor mode on a specific channel for targeted sniffing
iwconfig wlan0 txpower 30mW key offBoosts transmission power and clears encryption keys to prepare for injection attacks
iwconfig wlan0 essid "FakeAP" mode masterConfigures the interface to act as a rogue Access Point with a specific ESSID
iwconfig wlan0 essid off key off mode managedRapidly neutralizes the interface configuration to disconnect from any potentially compromised network
iwconfig wlan0 channel 1 && iwconfig wlan0 channel 6Chains commands to hop channels sequentially for manual coverage testing
iwconfig wlan0 power off retry 10Disables power saving and increases retries to troubleshoot intermittent connection drops
iwconfig wlan0 | grep "Link Quality"Extracts just the link quality and signal level statistics from the status output
iwconfig wlan0 txpower auto rate autoResets power and rate settings to hardware defaults after testing
iwconfig wlan0 mode monitor frag off rts offPrepares interface for raw packet injection by disabling packet modifying thresholds
iwconfig wlan0 mode ad-hoc essid "Mesh" channel 11One-line configuration to establish a specific Ad-Hoc mesh cell on channel 11
watch -n 1 iwconfig wlan0Continuously updates the iwconfig status to monitor signal strength changes in real time
iwconfig wlan0 essid ""Clears the ESSID string to blank which forces some drivers to reset their association state
iwconfig wlan0 key off enc offExplicitly disables encryption using both key and enc aliases to ensure open mode
The modern nl80211 tool for configuring Linux wireless devices: scan, set channels, switch modes and inspect capabilities.
Puts wireless interfaces into monitor mode and stops processes that would interfere with packet capture.
A user-space daemon that turns a wireless card into an access point — used for test networks and rogue-AP assessments.