LinuxCommandLibrary

iwconfig

TLDR

Show all interfaces

$ iwconfig
copy
Show specific interface
$ iwconfig wlan0
copy
Set ESSID
$ iwconfig wlan0 essid network_name
copy
Set mode
$ iwconfig wlan0 mode Managed
copy

SYNOPSIS

iwconfig [interface] [parameter value...]

DESCRIPTION

iwconfig configures and displays parameters of wireless network interfaces. It is the wireless equivalent of ifconfig, providing access to wireless-specific settings like ESSID, mode, channel, and encryption.

PARAMETERS

essid name

Set the network name (SSID)
mode mode
Set operating mode (Ad-Hoc, Managed, Master, Monitor, Auto)
freq frequency
Set operating frequency
channel channel
Set operating channel
ap address
Force association with specific access point
rate rate
Set bit rate
txpower power
Set transmit power
sens threshold
Set sensitivity threshold
key key
Set WEP encryption key (deprecated)

CAVEATS

iwconfig is deprecated in favor of iw. WEP encryption is insecure and should not be used. For WPA/WPA2, use wpa_supplicant instead.

HISTORY

iwconfig was part of the wireless-tools package, now largely superseded by iw and wpa_supplicant.

SEE ALSO

iw(8), iwlist(8), wpa_supplicant(8)

Copied to clipboard