Iwconfig
Iwconfig is one of the User-layer configuration tools of wirewirelessextensions (LWE. LWE is a tool for wireless network configuration in Linux, including Kernel support, user-layer Configuration tool, and Driver Interface Support. At present, many wireless network cards support LWE, and mainstream Linux versions, such as RedhatLinux and UbuntuLinux, already include this configuration tool.
Usage: iwconfiginterface [essid {NN | on | off}]
[Nwid {NN | on | off}]
[Mode {managed | ad-hoc | ...}
[FreqN. NNNN [k | M | G]
[ChannelN]
[Ap {N | off | auto}]
[SensN]
[NickN]
[Rate {N | auto | fixed}]
[Rts {N | auto | fixed | off}]
[Frag {N | auto | fixed | off}]
[Enc {NNNN-NNNN | off}]
[Power {periodN | timeoutN}]
[Retry {limitN | lifetimeN}]
[TxpowerN {mW | dBm}]
[Commit]
Note: iwconfig is the most important tool for LWE. You can configure most parameters of the wireless network card.
Parameters:
Essid: Set the ESSID (ExtensionServiceSetID) of the wireless network card ). ESSID is used to distinguish different wireless networks. Normally, only wireless sites with the same ESSID can communicate with each other unless you want to listen to the wireless network. The following parameter is an ESSID string enclosed by double quotation marks, or any/on/off. If the ESSID string contains any/no/off, add "--".
Example:
# Iwconfigeth0essidany allows any ESSID, that is, the hybrid mode
# Iwconfigeth0essid "MyNetwork" set ESSID to "MyNetwork"
# Iwconfigeth0essid -- "ANY" sets ESSID to "ANY"
Nwid: NetworkID, used only for the wireless network card of the pre-802.11, 802.11 Nic uses ESSID and MAC address of AP to replace nwid, now basically do not need to set.
Example:
# Iwconfigeth0nwidAB34
# Iwconfigeth0nwidoff
Nick: Nickname. This parameter must be set for some NICs, but is not used for the 802.11 protocol stack and MAC.
Example:
# Iwconfigeth0nickname "MyLinuxNode"
Mode: Set the working mode of the wireless network card. It can be
Ad-hoc: point-to-point wireless network without AP
Managed: a network composed of multiple APs, which allows wireless devices to roam.
Master: sets the wireless network card as an AP
Repeater: set as a wireless network relay device to forward network packets.
Secondary: set as the backup AP/Repeater
Monitor: listening mode
Auto: the working mode is automatically selected by the wireless network adapter.
Example:
# Iwconfigeth0modeManaged
# Iwconfigeth0modeAd-Hoc