iw-dev
subcommand of iw for manipulating wireless network interfaces
TLDR
Set device to monitor mode (interface must be down)
SYNOPSIS
iw dev interface command [parameters]
DESCRIPTION
iw dev is a subcommand of iw for manipulating wireless network interfaces. It controls interface modes, channels, frequencies, and manages virtual interfaces.
Monitor mode allows passive packet capture. Managed mode is for normal client connections. The interface typically must be brought down (ip link set down) before changing modes.
PARAMETERS
set type MODE
Set interface mode: managed, monitor, ibss, mesh, etc.set channel NUM
Set wireless channel numberset freq MHZ
Set wireless frequency in MHzstation dump
Show connected station informationinterface add NAME type MODE
Create virtual interfacedel
Delete interfacescan
Trigger scan for networks
CAVEATS
Requires root privileges for most operations. Interface must be down before changing type. Not all wireless drivers support all modes. Monitor mode capabilities vary by hardware.
HISTORY
iw is the modern replacement for the deprecated wireless-tools (iwconfig, iwlist). It was developed to support the nl80211/cfg80211 wireless stack introduced in Linux kernel 2.6.22 (2007).
