Examples:
iwconfig ethX essid <ESSID>
mode:
Set the operation mode of our device.
Examples:
iwconfig ethX <mode>
mode:
Managed (Infrastructure Station mode)
Ah-hoc (Ad hoc mode)
Master (Access Point mode)
channel:
Set the channel in the device.
Example:
iwconfig ethX channel <channel>
The channel can vary from 1 to 14. One should note that, the set channel
command will not work under the Managed (infrastructure mode). Because in
the in this mode, the channel should change to channel of the AP we want to
associate.
rts[_threshold]:
Set the RTS Threshold.
Example:
iwconfig ethX rts 250
frag[_threshold]:
Set the Fragmentation Threshold.
Example:
iwconfig ethX frag 512
key/enc[ryption]:
Used to manipulate encryption or scrambling keys and encryption mode. To set
the current encryption key, just enter the key in hex digits as
XXXX-XXXX-XXXX-XXXX
or
XXXXXXXX
. To set a key other than the current
key, append
[index]
to the key itself. You can also enter the key as an ASCII
string by using the
s:
prefix. To change which key is the current active key, just
enter
[index]
(without entering any key value).
off
and
on
disable and reenable
encryption,
open
set the system in open mode (accept non-encrypted packets)
and
restricted
discard non-encrypted packets.
Examples :
iwconfig ethX key 0123-4567-89 [1]
iwconfig ethX key [1] open