summaryrefslogtreecommitdiffstats
path: root/upstream/debian-unstable/man8/iwconfig.8
blob: 1585ec23bbd0ab18f3ff40d2549620df4b52cb3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
.\" Jean II - HPLB - 1996 => HPL - 2004
.\" iwconfig.8
.\"
.TH IWCONFIG 8 "30 March 2006" "wireless-tools" "Linux Programmer's Manual"
.\"
.\" NAME part
.\"
.SH NAME
iwconfig \- 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 "                   [modu " M "] [commit]
.br
.BI "iwconfig --help"
.br
.BI "iwconfig --version"
.\"
.\" DESCRIPTION part
.\"
.SH DESCRIPTION
.B Iwconfig
is similar to
.IR ifconfig (8),
but is dedicated to the wireless interfaces. It is used to set the
parameters of the network interface which are specific to the wireless
operation (for example : the frequency).
.B Iwconfig
may also be used to display those parameters, and the wireless
statistics (extracted from
.IR /proc/net/wireless ).
.PP
All these parameters and statistics are device dependent. Each driver
will provide only some of them depending on hardware support, and the
range of values may change. Please refer to the man page of each
device for details.
.\"
.\" PARAMETER part
.\"
.SH PARAMETERS
.TP
.B essid
Set the ESSID (or Network Name - in some products it may also be
called Domain ID). The ESSID is used to identify cells which are part
of the same virtual network.
.br
As opposed to the AP Address or NWID which define a single cell, the
ESSID defines a group of cells connected via repeaters or
infrastructure, where the user may roam transparently.
.br
With some cards, you may disable the ESSID checking (ESSID
promiscuous) with
.IR off " or " any " (and " on
to reenable it).
.br
If 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
Set the Network ID. As all adjacent wireless networks share the same
medium, this parameter is used to differentiate them (create logical
colocated networks) and identify nodes belonging to the same cell.
.br
This parameter is only used for pre-802.11 hardware, the 802.11
protocol uses the ESSID and AP Address for this function.
.br
With some cards, you may disable the Network ID checking (NWID
promiscuous) with
.IR off " (and " on
to 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 define
it, but this is not used as far as the protocols (MAC, IP, TCP) are
concerned and completely useless as far as configuration goes. Only
some wireless diagnostic tools may use it.
.br
.B Example :
.br
.I "	iwconfig eth0 nickname ""My Linux Node""
.TP
.B mode
Set the operating mode of the device, which depends on the network
topology. 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 all
packets 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 / channel
Set the operating frequency or channel in the device. A value below
1000 indicates a channel number, a value greater than 1000 is a
frequency in Hz. You may append the suffix k, M or G to the value (for
example, "2.46G" for 2.46 GHz frequency), or add enough '0'.
.br
Channels 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 on
regulations, some frequencies/channels may not be available.
.br
When using Managed mode, most often the Access Point dictates the
channel and the driver may refuse the setting of the frequency. In
Ad-Hoc mode, the frequency setting may only be used at initial cell
creation, and may be ignored when joining an existing cell.
.br
You may also use
.I off
or
.I auto
to 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 ap
Force the card to register to the Access Point given by the address,
if it is possible. This address is the cell identity of the Access
Point, as reported by wireless scanning, which may be different from
its network MAC address. If the wireless link is point to point, set
the address of the other end of the link. If the link is ad-hoc, set
the cell identity of the ad-hoc network.
.br
When the quality of the connection goes too low, the driver may revert
back to automatic mode (the card selects the best Access Point in
range).
.br
You may also use
.I off
to re-enable automatic mode without changing the current Access Point,
or you may use
.I any
or
.I auto
to 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. The
bit-rate is the speed at which bits are transmitted over the medium,
the user speed of the link is lower due to medium sharing and
various overhead.
.br
You 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 are
card specific, usually an index in the bit-rate list. Use
.I auto
to select automatic bit-rate mode (fallback to lower rate on noisy
channels), which is the default for most cards, and
.I fixed
to 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 txpower
For cards supporting multiple transmit powers, sets the transmit power
in dBm. If
.I W
is 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.
.br
In addition, 
.IR on " and " off
enable and disable the radio, and
.IR auto " and " fixed
enable 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 sens
Set the sensitivity threshold. This define how sensitive is the card
to poor operating conditions (low signal, interference). Positive
values are assumed to be the raw value used by the hardware or a
percentage, negative values are assumed to be dBm. Depending on the
hardware implementation, this parameter may control various functions.
.br
On modern cards, this parameter usually control handover/roaming
threshold, the lowest signal level for which the hardware remains
associated with the current Access Point. When the signal level goes
below this threshold the card starts looking for a new/better Access
Point. Some cards may use the number of missed beacons to trigger
this. For high density of Access Points, a higher threshold make sure
the card is always associated with the best AP, for low density of
APs, a lower threshold minimise the number of failed handoffs.
.br
On more ancient card this parameter usually controls the defer
threshold, the lowest signal level for which the hardware considers
the channel busy. Signal levels above this threshold make the hardware
inhibits its own transmission whereas signals weaker than this are
ignored and the hardware is free to transmit. This is usually strongly
linked to the receive threshold, the lowest signal level for which the
hardware attempts packet reception. Proper setting of these thresholds
prevent the card to waste time on background noise while still
receiving weak transmissions. Modern designs seems to control those
thresholds automatically.
.br
.br
.B Example :
.br
.I "	iwconfig eth0 sens -80"
.br
.I "	iwconfig eth0 sens 2"
.TP
.BR retry
Most cards have MAC retransmissions, and some allow to set the
behaviour of the retry mechanism.
.br
To set the maximum number of retries, enter
.IR "limit `value'" .
This is an absolute value (without unit), and the default (when
nothing is specified).
To set the maximum length of time the MAC should retry, enter
.IR "lifetime `value'" .
By defaults, this value is in seconds, append the suffix m or u to
specify values in milliseconds or microseconds.
.br
You can also add the
.IR short ", " long ", " min " and " max
modifiers. If the card supports automatic mode, they define the bounds
of the limit or lifetime. Some other cards define different values
depending on packet size, for example in 802.11
.I min limit
is the short retry limit (non RTS/CTS packets).
.br
.B Examples :
.br
.I "	iwconfig eth0 retry 16"
.br
.I "	iwconfig eth0 retry lifetime 300m"
.br
.I "	iwconfig eth0 retry short 12"
.br
.I "	iwconfig eth0 retry min limit 8"
.TP
.BR rts [_threshold]
RTS/CTS adds a handshake before each packet transmission to make sure
that the channel is clear. This adds overhead, but increases
performance in case of hidden nodes or a large number of active
nodes. This parameter sets the size of the smallest packet for which
the node sends RTS ; a value equal to the maximum packet size disables
the mechanism. You may also set this parameter to
.IR auto ", " fixed " or " off .
.br
.B Examples :
.br
.I "	iwconfig eth0 rts 250"
.br
.I "	iwconfig eth0 rts off"
.TP
.BR frag [mentation_threshold]
Fragmentation allows to split an IP packet in a burst of smaller
fragments transmitted on the medium. In most cases this adds overhead,
but in a very noisy environment this reduces the error penalty and
allow packets to get through interference bursts. This parameter sets
the maximum fragment size which is always lower than the maximum
packet size.
.br
This parameter may also control Frame Bursting available on some
cards, the ability to send multiple IP packets together. This
mechanism would be enabled if the fragment size is larger than the
maximum packet size.
.br
You may also set this parameter to
.IR auto ", " fixed " or " off .
.br
.B Examples :
.br
.I "	iwconfig eth0 frag 512"
.br
.I "	iwconfig eth0 frag off"
.TP
.BR key / enc [ryption]
Used to manipulate encryption or scrambling keys and security mode.
.br
To set the current encryption key, just enter the key in hex digits as
.IR XXXX-XXXX-XXXX-XXXX " or " XXXXXXXX .
To set a key other than the current key, prepend or append
.I [index]
to the key itself (this won't change which is the active key). You can
also enter the key as an ASCII string by using the
.I s:
prefix. Passphrase is currently not supported.
.br
To change which key is the currently active key, just enter
.I [index]
(without entering any key value).
.br
.IR off " and " on
disable and reenable encryption.
.br
The security mode may be
.I open
or
.IR restricted ,
and its meaning depends on the card used. With most cards, in
.I open
mode no authentication is used and the card may also accept
non-encrypted sessions, whereas in
.I restricted
mode only encrypted sessions are accepted and the card will use
authentication if available.
.br
If you need to set multiple keys, or set a key and change the active
key, you need to use multiple
.B key
directives. Arguments can be put in any order, the last one will take
precedence.
.br
.B Examples :
.br
.I "	iwconfig eth0 key 0123-4567-89"
.br
.I "	iwconfig eth0 key [3] 0123-4567-89"
.br
.I "	iwconfig eth0 key s:password [2]"
.br
.I "	iwconfig eth0 key [2]"
.br
.I "	iwconfig eth0 key open"
.br
.I "	iwconfig eth0 key off"
.br
.I "	iwconfig eth0 key restricted [3] 0123456789"
.br
.I "	iwconfig eth0 key 01-23 key 45-67 [4] key [4]"
.TP
.BR power
Used to manipulate power management scheme parameters and mode.
.br
To set the period between wake ups, enter
.IR "period `value'" .
To set the timeout before going back to sleep, enter
.IR "timeout `value'" .
To set the generic level of power saving, enter
.IR "saving `value'" .
You can also add the
.IR min " and " max
modifiers. By default, those values are in seconds, append the suffix
m or u to specify values in milliseconds or microseconds. Sometimes,
those values are without units (number of beacon periods, dwell,
percentage or similar).
.br
.IR off " and " on
disable and reenable power management. Finally, you may set the power
management mode to
.I all
(receive all packets),
.I unicast
(receive unicast packets only, discard multicast and broadcast) and
.I multicast
(receive multicast and broadcast only, discard unicast packets).
.br
.B Examples :
.br
.I "	iwconfig eth0 power period 2"
.br
.I "	iwconfig eth0 power 500m unicast"
.br
.I "	iwconfig eth0 power timeout 300u all"
.br
.I "	iwconfig eth0 power saving 3"
.br
.I "	iwconfig eth0 power off"
.br
.I "	iwconfig eth0 power min period 2 power max period 4"
.TP
.BR modu [lation]
Force the card to use a specific set of modulations. Modern cards
support various modulations, some which are standard, such as 802.11b
or 802.11g, and some proprietary. This command force the card to only
use the specific set of modulations listed on the command line. This
can be used to fix interoperability issues.
.br
The list of available modulations depend on the card/driver and can be
displayed using
.IR "iwlist modulation" .
Note that some card/driver may not be able to select each modulation
listed independently, some may come as a group. You may also set this
parameter to
.IR auto
let the card/driver do its best.
.br
.B Examples :
.br
.I "	iwconfig eth0 modu 11g"
.br
.I "	iwconfig eth0 modu CCK OFDMa"
.br
.I "	iwconfig eth0 modu auto"
.TP
.BR commit
Some cards may not apply changes done through Wireless Extensions
immediately (they may wait to aggregate the changes or apply it only
when the card is brought up via
.IR ifconfig ).
This command (when available) forces the card to apply all pending
changes.
.br
This is normally not needed, because the card will eventually apply
the changes, but can be useful for debugging.
.\"
.\" DISPLAY part
.\"
.SH DISPLAY
For each device which supports wireless extensions,
.I iwconfig
will display the name of the
.B MAC protocol
used (name of device for proprietary protocols), the
.B ESSID
(Network Name), the
.BR NWID ,
the
.B frequency
(or channel), the
.BR sensitivity ,
the
.B mode
of operation, the
.B Access Point
address, the
.BR bit-rate ,
the
.BR "RTS threshold" ", the " "fragmentation threshold" ,
the
.B encryption key
and the
.B power management
settings (depending on availability).
.PP
The parameters displayed have the same meaning and values as the
parameters you can set, please refer to the previous part for a
detailed explanation of them.
.br
Some parameters are only displayed in short/abbreviated form (such as
encryption). You may use
.IR iwlist (8)
to get all the details.
.br
Some parameters have two modes (such as bitrate). If the value is
prefixed by
.RB ` = ',
it means that the parameter is fixed and forced to that value, if it
is prefixed by
.RB ` : ',
the parameter is in automatic mode and the current value is shown (and
may change).
.TP
.BR "Access Point" / Cell
An address equal to 00:00:00:00:00:00 means that the card failed to
associate with an Access Point (most likely a configuration
issue). The
.B Access Point
parameter will be shown as
.B Cell
in ad-hoc mode (for obvious reasons), but otherwise works the same.
.PP
If
.I /proc/net/wireless
exists,
.I iwconfig
will also display its content. Note that those values will depend on
the driver and the hardware specifics, so you need to refer to your
driver documentation for proper interpretation of those values.
.TP
.B Link quality
Overall quality of the link. May be based on the level of contention
or interference, the bit or frame error rate, how good the received
signal is, some timing synchronisation, or other hardware metric. This
is an aggregate value, and depends totally on the driver and hardware.
.TP
.B Signal level
Received signal strength (RSSI - how strong the received signal
is). May be arbitrary units or dBm,
.I iwconfig
uses driver meta information to interpret the raw value given by
.I /proc/net/wireless
and display the proper unit or maximum value (using 8 bit arithmetic). In
.I Ad-Hoc
mode, this may be undefined and you should use
.IR iwspy .
.TP
.B Noise level
Background noise level (when no packet is transmitted). Similar
comments as for
.BR "Signal level" .
.TP
.B Rx invalid nwid
Number of packets received with a different NWID or ESSID. Used to
detect configuration problems or adjacent network existence (on the
same frequency).
.TP
.B Rx invalid crypt
Number of packets that the hardware was unable to decrypt. This can be
used to detect invalid encryption settings.
.TP
.B Rx invalid frag
Number of packets for which the hardware was not able to properly
re-assemble the link layer fragments (most likely one was missing).
.TP
.B Tx excessive retries
Number of packets that the hardware failed to deliver. Most MAC
protocols will retry the packet a number of times before giving up.
.TP
.B Invalid misc
Other packets lost in relation with specific wireless operations.
.TP
.B Missed beacon
Number of periodic beacons from the Cell or the Access Point we have
missed. Beacons are sent at regular intervals to maintain the cell
coordination, failure to receive them usually indicates that the card
is out of range.
.\"
.\" AUTHOR part
.\"
.SH AUTHOR
Jean Tourrilhes \- jt@hpl.hp.com
.\"
.\" FILES part
.\"
.SH FILES
.I /proc/net/wireless
.\"
.\" SEE ALSO part
.\"
.SH SEE ALSO
.BR ifconfig (8),
.BR iwspy (8),
.BR iwlist (8),
.BR iwevent (8),
.BR iwpriv (8),
.BR wireless (7).