next up previous contents
Next: txpower - Set Transmit Up: Using iwconfig Previous: frag - Set the   Contents

key/enc - Manipulate WEP Encryption Keys and Mode

This parameter is used to manipulate the WEP key and authentication mode. It can be used to set the key, change the key, select the active key, enable and disable WEP, and set the authentication mode. The driver can store up to 4 keys. Each instance of the key command manipulates only one key. Thus, to change all 4 keys, 4 separate commands must be used.

The key value can be specified as is in the hexadecimal form. If an ASCII string is used for the key value, perpend ``s:'' to the key. To change a key other than the current key, prepend ``[index]'' to the key value, where index is the number of the key you wish to change. To select which key is active, use ``[index]'' without supplying any keys, where index is the desired key number. Including the keywords open or restricted changes the authentication mode between open authentication and restricted authentication. Use the off keyword to disable WEP.

Example:The following command sets the default key to be key 3:
myprompt# iwconfig ath0 key [3]
The following command sets the default key to be the hex key 0xDEAD-BEEF-AA:
myprompt# iwconfig ath0 key DEAD-BEEF-AA
The following command sets key 2 to the ASCII phrase ``password'' and sets the authentication type to open:
myprompt# iwconfig ath0 key [2] s:password open
The following command disables WEP:
myprompt# iwconfig ath0 key off


next up previous contents
Next: txpower - Set Transmit Up: Using iwconfig Previous: frag - Set the   Contents
root 2005-12-16