iw helpDisplays the summary of all available iw commands and usage syntax
The modern nl80211 tool for configuring Linux wireless devices: scan, set channels, switch modes and inspect capabilities.
sudo apt install iwiw dev <devname> scanInitiates a standard active scan for available wireless networks
Example
iw dev wlan0 scaniw dev <devname> scan passivePerforms a passive scan without sending probe requests to remain stealthy
Example
iw dev wlan0 scan passiveiw dev <devname> scan -uScans for networks and prints results with human-readable formatting
Example
iw dev wlan0 scan -uiw dev <devname> scan freq <freq>Scans only a specific frequency to save time and reduce noise
Example
iw dev wlan0 scan freq 2412iw dev <devname> scan ssid <ssid>Initiates an active directed scan specifically for a target SSID
Example
iw dev wlan0 scan ssid "LabWifi"iw dev <devname> scan dumpDisplays the results of the most recent scan buffer without scanning again
Example
iw dev wlan0 scan dumpiw dev <devname> scan triggerTriggers a background scan without immediately waiting for or printing results
Example
iw dev wlan0 scan triggeriw dev <devname> set type managedSets the interface to managed mode for standard client station operations
Example
iw dev wlan0 set type managediw dev <devname> set type monitorSets the interface to monitor mode for packet sniffing and traffic analysis
Example
iw dev wlan0 set type monitoriw dev <devname> set type ibssSets the interface to Ad-Hoc (IBSS) mode for peer-to-peer networking
Example
iw dev wlan0 set type ibssiw dev <devname> set type apSets the interface to Access Point mode to broadcast a network
Example
iw dev wlan0 set type apiw dev <devname> set type wdsSets the interface to Wireless Distribution System mode for bridging
Example
iw dev wlan0 set type wdsiw phy <phyname> interface add <name> type <type>Creates a new virtual interface on the specified physical hardware
Example
iw phy phy0 interface add mon0 type monitoriw dev <devname> delDeletes a specific virtual wireless interface from the system
Example
iw dev mon0 deliw dev <devname> set name <newname>Renames a wireless interface to a new custom identifier
Example
iw dev wlan0 set name wifi0iw dev <devname> set freq <freq>Forces the interface to listen or transmit on a specific frequency in MHz
Example
iw dev wlan0 set freq 2412iw dev <devname> set channel <channel>Sets the interface to a specific channel number on the 2.4GHz band
Example
iw dev wlan0 set channel 6iw dev <devname> set freq <freq> <width_type>Sets frequency with a specific channel width for high throughput testing
Example
iw dev wlan0 set freq 5180 80MHziw dev <devname> set freq <freq> HT20Sets the frequency enforcing a standard 20MHz High Throughput width
Example
iw dev wlan0 set freq 2412 HT20iw dev <devname> set freq <freq> HT40+Sets the frequency enforcing 40MHz width with the secondary channel above
Example
iw dev wlan0 set freq 2437 HT40+iw dev <devname> set freq <freq> HT40-Sets the frequency enforcing 40MHz width with the secondary channel below
Example
iw dev wlan0 set freq 2437 HT40-iw dev <devname> set txpower fixed <mBm>Sets a fixed transmit power in millibels (2000 mBm = 20 dBm)
Example
iw dev wlan0 set txpower fixed 2000iw dev <devname> set txpower autoAllows the hardware to automatically manage transmit power levels
Example
iw dev wlan0 set txpower autoiw dev <devname> set txpower limit <mBm>Sets a maximum upper limit for transmit power output
Example
iw dev wlan0 set txpower limit 1000iw dev <devname> connect <SSID>Attempts to connect to an open wireless network with the specified SSID
Example
iw dev wlan0 connect "GuestNet"iw dev <devname> connect <SSID> <freq>Connects to a specific SSID on a forced frequency channel
Example
iw dev wlan0 connect "GuestNet" 2412iw dev <devname> connect <SSID> key 0:<key>Connects to a legacy WEP network using a specific key index
Example
iw dev wlan0 connect "WEPNET" key 0:ABCDEiw dev <devname> disconnectDisconnects the interface from the current Access Point
Example
iw dev wlan0 disconnectiw dev <devname> auth <SSID>Initiates authentication sequence without full association
Example
iw dev wlan0 auth "SecureNet"iw dev <devname> station dumpDumps statistics for all currently connected stations or peers
Example
iw dev wlan0 station dumpiw dev <devname> station get <mac>Retrieves detailed signal and throughput stats for a specific station MAC
Example
iw dev wlan0 station get 00:11:22:33:44:55iw dev <devname> station del <mac>Forcibly removes a station from the driver's internal table
Example
iw dev wlan0 station del 00:11:22:33:44:55iw dev <devname> get power_saveChecks the current power save mode status of the interface
Example
iw dev wlan0 get power_saveiw dev <devname> set power_save onEnables power saving mode to conserve energy during inactivity
Example
iw dev wlan0 set power_save oniw dev <devname> set power_save offDisables power saving to ensure maximum performance and consistent Rx/Tx
Example
iw dev wlan0 set power_save offiw dev <devname> set bitrates legacy-2.4 <rates>Forces the interface to use specific legacy 802.11b bitrates
Example
iw dev wlan0 set bitrates legacy-2.4 1 2 5.5 11iw dev <devname> set bitrates ht-mcs-2.4 <indexes>Restricts the interface to use specific HT MCS indexes on 2.4GHz
Example
iw dev wlan0 set bitrates ht-mcs-2.4 0 1 2 3iw dev <devname> set monitor noneDisables all specific monitor mode flags for a raw capture state
Example
iw dev wlan0 set monitor noneiw dev <devname> set monitor fcsfailConfigures monitor mode to pass packets with bad checksums (FCS errors)
Example
iw dev wlan0 set monitor fcsfailiw dev <devname> set monitor controlConfigures monitor mode to capture 802.11 control frames like RTS/CTS
Example
iw dev wlan0 set monitor controliw dev <devname> set monitor otherbssConfigures monitor mode to capture traffic from other BSSIDs
Example
iw dev wlan0 set monitor otherbssiw dev <devname> set monitor cookEnables cooked monitor mode where the hardware handles some processing
Example
iw dev wlan0 set monitor cookiw dev <devname> mesh join <meshid>Joins an 802.11s mesh network with the specified ID
Example
iw dev wlan0 mesh join "CityMesh"iw dev <devname> mesh leaveLeaves the currently joined mesh network
Example
iw dev wlan0 mesh leaveiw dev <devname> mpath dumpDumps the current mesh path routing table
Example
iw dev wlan0 mpath dumpiw phy <phyname> set distance <dist>Sets the coverage class distance in meters to adjust ACK timeouts
Example
iw phy phy0 set distance 1000iw phy <phyname> set netns <pid>Moves the entire physical wireless card into a different network namespace
Example
iw phy phy0 set netns 1234iw phy <phyname> set rts <threshold>Sets the RTS threshold to control collision avoidance for packet sizes
Example
iw phy phy0 set rts 500iw phy <phyname> set frag <threshold>Sets the fragmentation threshold to split large packets
Example
iw phy phy0 set frag 256iw dev <devname> vendor recvbin <oui> <subcmd>Sends a vendor-specific command and receives binary output data
Example
iw dev wlan0 vendor recvbin 0x001374 0x01iw dev <devname> set noack_map <map>Sets the NoACK map to disable acknowledgments for specific traffic classes
Example
iw dev wlan0 set noack_map 0x0001iw phy <phyname> interface add mon0 type monitor flags noneCreates a clean monitor interface with no filtering flags for full capture
Example
iw phy phy0 interface add mon0 type monitor flags noneiw dev <devname> scan passive dumpDumps scan results collected passively to avoid revealing presence
Example
iw dev mon0 scan passive dumpiw dev <devname> set channel <chan> <width>Locks monitor interface to channel 1 with 20MHz width for targeted sniffing
Example
iw dev mon0 set channel 1 20MHziw dev <devname> scan trigger freq <freq>Triggers a probe request flood on a single frequency by scanning repeatedly
Example
iw dev wlan0 scan trigger freq 2412iw dev <devname> station dumpPeriodically dumps station info to detect rogue devices or unauthorized connections
Example
iw dev wlan0 station dumpiw dev <devname> linkVerifies that the defensive sensor is connected to the correct secure SSID
Example
iw dev wlan0 linkiw listAudits supported ciphers and interface combinations to ensure hardware compliance
iw reg getChecks if the regulatory domain has been tampered with or misconfigured
iw phy <phyname> wowlan showInspects Wake-on-WLAN capabilities to test power management attacks
Example
iw phy phy0 wowlan showiw dev <devname> get mesh_paramAudits mesh parameters to validate routing security settings
Example
iw dev wlan0 get mesh_paramiw dev <devname> survey dumpDumps channel survey data to analyze noise floor and channel interference
Example
iw dev wlan0 survey dumpiw dev <devname> set type managedReverts monitor interface to managed to test defense recovery time
Example
iw dev mon0 set type managediw dev <devname> delRemoves temporary monitor interfaces created during the testing session
Example
iw dev mon0 deliw dev <devname> set txpower autoResets transmit power to default hardware control after testing
Example
iw dev wlan0 set txpower autoiw reg set 00Resets regulatory domain to the world regulatory domain
iw dev <devname> set channel <chan> <width> <center1> <center2>Sets complex channel width with center frequencies for VHT AP setup
Example
iw dev wlan0 set channel 36 80MHz 42iw dev <devname> dumpDumps internal interface state for debugging driver issues
Example
iw dev wlan0 dumpiw dev <devname> set type monitor flags fcsfailSets monitor mode and allows bad FCS frames to improve injection analysis
Example
iw dev wlan0 set type monitor flags fcsfailiw dev <devname> roc <freq> <time>Remains on channel (ROC) for a specific duration in milliseconds
Example
iw dev wlan0 roc 2412 500iw phy <phyname> set antenna <bitmap> <bitmap>Configures active TX and RX antennas using bitmaps
Example
iw phy phy0 set antenna 0x1 0x1iw phy <phyname> set sar_specs <specs>Configures Specific Absorption Rate (SAR) limitations
Example
iw phy phy0 set sar_specs 1iw dev <devname> set power_save_scheme <scheme>Sets the specific power save scheme (1=min, 2=max)
Example
iw dev wlan0 set power_save_scheme 1iw dev <devname> measurement request <meas_type>Requests 802.11k radio measurement reports from peers
Example
iw dev wlan0 measurement request beaconiw dev <devname> ft_auth <bssid> <over_ds>Triggers Fast Transition (802.11r) authentication
Example
iw dev wlan0 ft_auth 00:11:22:33:44:55 1iw dev <devname> set vlan <vlanid>Assigns a VLAN ID to the wireless interface packets
Example
iw dev wlan0 set vlan 10iw dev <devname> scan abortAborts an ongoing scan operation immediately
Example
iw dev wlan0 scan abortiw dev <devname> peer dumpDumps information about mesh peers
Example
iw dev wlan0 peer dumpiw phy <phyname> interface add <name> type managedRestores a standard managed interface after deleting a monitor interface
Example
iw phy phy0 interface add wlan0 type managediw dev <devname> disconnectFinal disconnect command to ensure clean state at end of lab
Example
iw dev wlan0 disconnectThe legacy wireless-extensions tool for viewing and setting interface parameters like mode, channel and power. Prefer iw on modern systems.
Puts wireless interfaces into monitor mode and stops processes that would interfere with packet capture.
The iproute2 tool for addresses, links, routes, neighbours and network namespaces — the modern replacement for ifconfig and route.
A user-space daemon that turns a wireless card into an access point — used for test networks and rogue-AP assessments.