📄 iwconfig.8
字号:
.\" Jean II - HPLB - 1996 => HPL - 2004.\" iwconfig.8.\".TH IWCONFIG 8 "09 March 2006" "wireless-tools" "Linux Programmer's Manual".\".\" NAME part.\".SH NAMEiwconfig \- configure a wireless network interface.\".\" SYNOPSIS part.\".SH SYNOPSIS.BI "iwconfig [" interface ].br.BI "iwconfig " interface " [essid " X "] [nwid " N "] [mode " M "] [freq " F "].br.BI " [channel " C ] [sens " S "] [ap " A "] [nick " NN ].br.BI " [rate " R "] [rts " RT "] [frag " FT "] [txpower " T ].br.BI " [enc " E "] [key " K "] [power " P "] [retry " R ].br.BI " [commit].br.BI "iwconfig --help".br.BI "iwconfig --version".\".\" DESCRIPTION part.\".SH DESCRIPTION.B Iwconfigis similar to.IR ifconfig (8),but is dedicated to the wireless interfaces. It is used to set theparameters of the network interface which are specific to the wirelessoperation (for example : the frequency)..B Iwconfigmay also be used to display those parameters, and the wirelessstatistics (extracted from.IR /proc/net/wireless )..PPAll these parameters and statistics are device dependent. Each driverwill provide only some of them depending on hardware support, and therange of values may change. Please refer to the man page of eachdevice for details..\".\" PARAMETER part.\".SH PARAMETERS.TP.B essidSet the ESSID (or Network Name - in some products it may also becalled Domain ID). The ESSID is used to identify cells which are partof the same virtual network..brAs opposed to the AP Address or NWID which define a single cell, theESSID defines a group of cells connected via repeaters orinfrastructure, where the user may roam transparently..brWith some cards, you may disable the ESSID checking (ESSIDpromiscuous) with.IR off " or " any " (and " onto reenable it)..brIf the ESSID of your network is one of the special keywords.RI ( off ", " on " or " any ),you should use.I --to escape it..br.B Examples :.br.I " iwconfig eth0 essid any".br.I " iwconfig eth0 essid ""My Network"".br.I " iwconfig eth0 essid -- ""ANY"".TP.BR nwid / domainSet the Network ID (in some products it may also be called DomainID). As all adjacent wireless networks share the same medium, thisparameter is used to differenciate them (create logical colocatednetworks) and identify nodes belonging to the same cell..brThis parameter is only used for pre-802.11 hardware, the 802.11protocol uses the ESSID and AP Address for this function..brWith some cards, you may disable the Network ID checking (NWIDpromiscuous) with.IR off " (and " onto reenable it)..br.B Examples :.br.I " iwconfig eth0 nwid AB34.br.I " iwconfig eth0 nwid off".TP.BR nick [name]Set the nickname, or the station name. Some 802.11 products do defineit, but this is not used as far as the protocols (MAC, IP, TCP) areconcerned and completely useless as far as configuration goes. Onlysome wireless diagnostic tools may use it..br.B Example :.br.I " iwconfig eth0 nickname ""My Linux Node"".TP.B modeSet the operating mode of the device, which depends on the networktopology. The mode can be.I Ad-Hoc(network composed of only one cell and without Access Point),.I Managed(node connects to a network composed of many Access Points, with roaming),.I Master(the node is the synchronisation master or acts as an Access Point),.I Repeater(the node forwards packets between other wireless nodes),.I Secondary(the node acts as a backup master/repeater),.I Monitor(the node is not associated with any cell and passively monitor allpackets on the frequency) or.IR Auto ..br.B Example :.br.I " iwconfig eth0 mode Managed".br.I " iwconfig eth0 mode Ad-Hoc".TP.BR freq / channelSet the operating frequency or channel in the device. A value below1000 indicates a channel number, a value greater than 1000 is afrequency in Hz. You may append the suffix k, M or G to the value (forexample, "2.46G" for 2.46 GHz frequency), or add enough '0'..brChannels are usually numbered starting at 1, and you may use.IR iwlist (8)to get the total number of channels, list the available frequencies,and display the current frequency as a channel. Depending onregulations, some frequencies/channels may not be available..brWhen using Managed mode, most often the Access Point dictates thechannel and the driver may refuse the setting of the frequency. InAd-Hoc mode, the frequency setting may only be used at initial cellcreation, and may be ignored when joining an existing cell..brYou may also use.I offor.I autoto let the card pick up the best channel (when supported)..br.B Examples :.br.I " iwconfig eth0 freq 2422000000".br.I " iwconfig eth0 freq 2.422G".br.I " iwconfig eth0 channel 3".br.I " iwconfig eth0 channel auto".TP.B apForce the card to register to the Access Point given by the address,if it is possible. This address is the cell identity of the AccessPoint, as reported by wireless scanning, which may be different fromits network MAC address. If the wireless link is point to point, setthe address of the other end of the link. If the link is ad-hoc, setthe cell identity of the ad-hoc network..brWhen the quality of the connection goes too low, the driver may revertback to automatic mode (the card selects the best Access Point inrange)..brYou may also use.I offto re-enable automatic mode without changing the current Access Point,or you may use.I anyor.I autoto force the card to reassociate with the currently best Access Point..br.B Example :.br.I " iwconfig eth0 ap 00:60:1D:01:23:45".br.I " iwconfig eth0 ap any".br.I " iwconfig eth0 ap off".TP.BR rate / bit [rate]For cards supporting multiple bit rates, set the bit-rate in b/s. Thebit-rate is the speed at which bits are transmitted over the medium,the user speed of the link is lower due to medium sharing andvarious overhead..brYou may append the suffix k, M or G to the value (decimal multiplier :10^3, 10^6 and 10^9 b/s), or add enough '0'. Values below 1000 arecard specific, usually an index in the bit-rate list. Use.I autoto select automatic bit-rate mode (fallback to lower rate on noisychannels), which is the default for most cards, and.I fixedto revert back to fixed setting. If you specify a bit-rate value and append.IR auto ,the driver will use all bit-rates lower and equal than this value..br.B Examples :.br.I " iwconfig eth0 rate 11M".br.I " iwconfig eth0 rate auto".br.I " iwconfig eth0 rate 5.5M auto".TP.BR txpowerFor cards supporting multiple transmit powers, sets the transmit powerin dBm. If.I Wis the power in Watt, the power in dBm is.IR "P = 30 + 10.log(W)" .If the value is postfixed by.IR mW ,it will be automatically converted to dBm..brIn addition, .IR on " and " offenable and disable the radio, and.IR auto " and " fixedenable and disable power control (if those features are available)..br.B Examples :.br.I " iwconfig eth0 txpower 15".br.I " iwconfig eth0 txpower 30mW".br.I " iwconfig eth0 txpower auto".br.I " iwconfig eth0 txpower off".TP.B sensSet the sensitivity threshold. This define how sensitive is the cardto poor operating conditions (low signal, interference). Positivevalues are assumed to be the raw value used by the hardware or apercentage, negative values are assumed to be dBm. Depending on thehardware implementation, this parameter may control various functions..brOn modern cards, this parameter usually control handover/roamingthreshold, the lowest signal level for which the hardware remainsassociated with the current Access Point. When the signal level goesbelow this threshold the card starts looking for a new/better AccessPoint. Some cards may use the number of missed beacons to triggerthis. For high density of Access Points, a higher threshold make surethe card is always associated with the best AP, for low density ofAPs, a lower threshold minimise the number of failed handoffs..brOn more ancient card this parameter usually controls the deferthreshold, the lowest signal level for which the hardware considersthe channel busy. Signal levels above this threshold make the hardwareinhibits its own transmission whereas signals weaker than this areignored and the hardware is free to transmit. This is usually stronglylinked to the receive threshold, the lowest signal level for which thehardware attempts packet reception. Proper setting of these thresholdsprevent the card to waste time on background noise while stillreceiving weak transmissions. Modern designs seems to control thosethresholds automatically..br.br.B Example :.br.I " iwconfig eth0 sens -80".br.I " iwconfig eth0 sens 2".TP.BR retryMost cards have MAC retransmissions, and some allow to set thebehaviour of the retry mechanism..brTo set the maximum number of retries, enter.IR "limit `value'" .This is an absolute value (without unit).To set the maximum length of time the MAC should retry, enter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -