Detailed analysis: Linux operating system wireless network commands (1)

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.