[펌] [Wi-Fi] 무선랜 소개

오늘날 무선 인터넷(Data Service)을 위해 가장 많이 사용되고 있는 기술은 LTE/WiBro/3G가 아닌 바로 "무선랜" (= Wi-Fi = Wireless LAN) 입니다. 왜 그럴까요? 그건 LTE/WiBro/3G등은 사업자가 그 망을 구축하기 위해서는 "매우 매우" 많은 돈이 드는 반면 무선랜은 아주 쌉니다. 그래서 오늘은 무선랜에 대한 표준 이야기와 기본 용어에 대해서 설명드리겠습니다. 본 내용은 무선랜에 대한 공부를 시작하시는 분들에게 큰 틀을 보여 드리기 위함이고, 이후 각 기술부분에 대한 상세 설명은 이후에 차차 소개해 드릴께요.


일단 "Wi-Fi"와 "Wireless LAN"의 용어의 차이는 뭘까요? 이를 이해하기 위해서는 무선랜 표준 기관에 대한 이해가 필요한데요.

  • IEEE: IEEE 802.11 Working Group에서 "Wireless LAN"이란 용어를 사용하였고, 이 표준에서는 주로 무선랜(무선 구간)에 대한 MAC과 PHY 계층을 주로 다루고 있습니다. (http://www.ieee802.org/11/)
  • Wi-Fi Alliance: 벤더(무선랜 제조사 및 통신사업자)를 중심으로한 비영리 단체이며 여기서 "Wi-Fi"란 용어를 사용하였고, 본 단체에서는 IEEE 802.11 무선 기술을 이용하여 사용자에게 Wi-Fi 서비스를 제공키 위한 전체적인 네트워크 구조 정의와 장비 인증(장비가 시장에 나오기 전에 받는 인증 딱지) 발급을 하고 있습니다. 우리나라도 올 9월부터 TTA에서 이 Wi-Fi 장비 인증(Certificate)을 하고 있다고 들었습니다. (http://www.wi-fi.org)

그래서 Wi-Fi와 Wireless LAN은 그 용어를 정의한 단체의 차이가 있다고 보시면 되고, 편하게 "무선랜"="Wi-Fi"="Wireless LAN"이라 생각하시면 될 것 같습니다. (보통은 Wi-Fi란 단어를 많이 사용하지요)


이제 IEEE와 Wi-Fi Alliance를 섞어서 무선랜에서 다루는 기술용어를 살펴 보도록 하겠습니다. 설명에 앞서 아래 그림의 Wi-Fi network element를 먼저 살펴 보면,

  • STA(Station): IEEE 802.11 용어이며, 그냥 Wi-Fi 단말(Wi-Fi interface를 가진 단말)이라고 보시면 됩니다.
  • AP(Access Point): STA와 무선으로 연결되는 장비입니다. (AP란 단어는 다들 익숙하시죠?)
  • AAA: STA(단말)를 인증해 주는 서버입니다.
  • Home AAA: 만약 Wi-Fi 로밍을 하게 되는 경우(현재 KT, SKT에서 모두 제공), 인증은 Home AAA에서 받게 됩니다. 예를 들어, KT Wi-Fi 로밍 서비스를 받고 있는 제가 미국으로 출장을 갔습니다. 그리고 미국에서 KT와 로밍 제휴된 AP에 접속을 하게 되면 저에 대한 인증은 KT AAA(그림에서 Home AAA)에서 받게 됩니다.



그림의 밑에부터 설명드릴께요.
PHY & MAC
IEEE에서는 802.11a, b, g, n등의 표준을 통해 무선구간의 기능(쉽게 얘기하면 "대역폭")을 향상시키고 있습니다. 예를 들어, 최근의 표준인 802.11n은 600Mbps의 속도를 제공합니다. 현재 시중에 있는 무선랜 단말(노트북, 스마트폰, 패드류 등)은 보통 802.11b/g/n을 지원합니다. 물론 AP도 이 표준들을 지원하고 있겠죠...

Authentication & Security
사용자 인증과 무선구간의 암호화에 대한 이야기인데요.
먼저 IEEE에서는 802.1x라는 표준을 통해
  • 단말과 L2 스위치간에 EAP 프로토콜(정확히는 EAPoL: EAP over LAN)을 사용하여 사용자 credential(예. 사용자 ID/PW)을 L2 스위치로 전달하고,
  • L2 스위치와 AAA간에 RADIUS 프로토콜을 사용하여 사용자 credential을 AAA에 보내어 사용자 인증을 하게 하자.

고 정의하였습니다(여기서 EAP와 RADIUS 프로토콜은 IETF RFC 표준임). 이 표준은 무선랜을 위한 인증 표준은 아니고 출발은 유선랜의 인증 방식을 위한 것이었는데(그래서 위의 설명을 L2 스위치로 함), 이 표준을 802.11에서 가져 왔습니다. 그래서 802.11에서는 "802.1x 기반의 인증"(= "EAP 기반의 인증")을 가입자 인증 방식으로 사용하였습니다(EAP 기반 인증에는 EAP-TLS, EAP-TTLS, EAP-AKA 등등 그 방법이 다양함). 그리고 무선 구간의 암호화 방식으로는 WEP를 정의하였습니다. 그런데 다들 들어 보셨겠지만 WEP는 보안에 매우 취약한 문제가 있어 다들 사용하지 말라고들 하지요.

한편 IEEE에서 표준화를 진행하고 있는 동안, Wi-Fi Alliance도 열심히 뭔가(WPA & WPA2)를 만들어 가고 있었습니다. 이 WPA & WPA2에서는 인증 방식은 IEEE에서 정의한 802.1x 기반의 인증을 그대로 사용하되 WEP는 문제가 많으니 다른 방식의 무선구간 암호화 방식을 정의하였고 이것이 TKIP(WPA)와 CCMP(WPA2) 입니다.

그런 후 IEEE에서는 Wi-Fi Alliance에서 정의한 WPA와 WPA2 방식을 자신의 표준에서 받아 들이게 되었고, 그 표준이 IEEE 802.11i입니다.


인증과 암호화 방식을 간단히 얘기하면 다음과 같습니다.

"인증을 위해 Wi-Fi 단말과 AP 사이는 EAP 프로토콜(=802.1x 프로토콜)을 사용하고, AP와 AAA 사이는 RADIUS 프로토콜을 사용한다. 그래서 단말의 인증 요청은 AP를 거쳐 AAA로 전달되고, AAA가 단말 인증을 한다"

"Wi-Fi 단말과 AP 사이의 무선 구간의 암호화는 WEP, TKIP(WPA), CCMP(WPA2) 방식이 있으며, WEP는 안쓰는 것이 좋다"


Authentication for Roaming Case

자 이제 로밍(KT 가입자가 미국에 출장가서 Wi-Fi 사용)입니다. 로밍 규격은 IEEE와는 별 관계가 없구요. 주로 Wi-Fi Alliance의 산하기관인 WBA(Wireless Broadband Alliance)에서 정의하고 있습니다.
일단 가입자 인증 부분인데요. EAP 기반의 인증은 EAP-TLS, EAP-TTLS, EAP-AKA, EAP-SIM 등등 매우 다양한 방식이 존재하고 각 통신사업자마다 자기들 정책에 맞는 걸 사용하고 있습니다. 즉, 이렇게 EAP 기반의 서로 다른 인증 방식으로 사용하고 있는 상황에서 어떻게 로밍 유저가 인증을 간단한 구조로 받을 수 있게 할까? 고민하던 WBA에서는 UAM(Universal Access Method)이라는 걸 정의하였는데요. 이 표준이 WISPr 1.0/2.0 입니다. 별건 아니구요. 로밍에 대해서는 "EAP 같은거 사용하지 말고, HTTP를 지원만 하면 인증을 받을 수 있는 방법을 정의하자!"입니다. 그래서 이 방식의 경우, KT 가입자가 미국에 가는 경우, EAP 기반의 인증이 아닌 자신의 ID/PW를 HTTPS에 실어서 미국 Wi-Fi AP로 보내면, 이 AP는 가입자의 ID를 보고(ID는 username@domain으로 구성이 되어 있어 domain을 보면 어떤 나라 사업자인지 알 수 있음. 예를 들어, cmyoo@kt.com) KT AAA(Home AAA)로 RADIUS 메시지를 릴레이 하게 되는 것입니다. 이때 각 사업자간의 AAA 연동 규격도 WBA에서 정의하였는데 이것이 WRIX-i 입니다.

[펌] wpa_supplicant를 사용한 무선랜 사용 ( WPAPSK 무선 보안 방식 / AES 암호화 )

필요한 소프트웨어
wireless-tools, wpa_supplicant, dhcpcd


iwconfig명령으로 사용 가능한 무선랜 카드 장치 이름 확인할 수 있다. wlan0이 무선 랜카드 임을 알 수 있다.
$ iwconfig
lo no wireless extensions.

wlan0 IEEE 802.11bgn Mode:Managed Access Point: Not-Associated
Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off

sit0 no wireless extensions.

eth0 no wireless extensions.
유선 랜 장치를 비활성화하고 무선 랜 장치를 활성화 한다.
$ ifconfig eth0 down
$ ifconfig wlan0 up


연결 가능한 무선 공유기의 ssid 이름 및 무선 보안 여부를 확인해야 함.
$ iwlist wlan0 scanning
.......................
Encryption key:on <-- 무선 보안 사용 중임
ESSID:"ssid_name" <-- ssid 이름
.......................
IE: WPA Version 1 <-- 무선 보안 정보
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
.......................


wpa_supplicant 명령을 사용하려면 wpa_supplicant.conf가 필요하다.
이를 위해 우선 psk키를 생성한다.

$ wpa_passphrase ssid_name > /etc/wpa_supplicant/wpa_supplicant.conf
password 입력 후 엔터


입력한 password가 psk로 바꿔어 진 것을 확인 할 수 있다.
$ cat /etc/wpa_supplicant/wpa_supplicant.conf
# reading passphrase from stdin
network={
ssid="ssid_name"
#psk="입력한 password"
psk="생성된 psk"
}

생성된 파일 wpa_supplicant.conf 에 추가 정보를 입력한다.
# reading passphrase from stdin
network={
ssid="ssid_name"
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
psk="생성된 psk"
}

ssid가 ssid_name인 공유기에 연결한다
$ iwconfig wlan0 essid "ssid_name"
$ wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &

[1] 1920
CTRL-EVENT-SCAN-RESULTS
Trying to associate with 00:00:00:00:00:00 (SSID='ssid_name' freq=2412 MHz)
Associated with 00:00:00:00:00:00
WPA: Key negotiation completed with 00:00:00:00:00:00 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed (auth) [id=0 id_str=]

ip를 dhcp로 할당 받는다
$ dhcpcd wlan0 &
[2] 1923
wlan0: dhcpcd 4.0.15 starting
wlan0: broadcasting for a lease
wlan0: offered 192.168.0.2 from 192.168.0.1
wlan0: acknowledged 192.168.0.2 from 192.168.0.1
wlan0: checking 192.168.0.2 is available on attached networks
wlan0: leased 192.168.0.2 for 864000 seconds

또는 수동으로 ip를 설정하려면
$ ifconfig wlan0 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255
$ route add default gw 192.168.0.1 wlan0
$ echo nameserver 192.168.0.1 > /etc/resolv.conf <--DNS 서버 설정

인터넷 사용가능 여부 테스트
$ ping google.com
PING google.com (74.125.127.147) 56(84) bytes of data.
64 bytes from pz-in-f147.1e100.net (74.125.127.147): icmp_seq=1 ttl=48 time=135 ms



참고

Wireless LAN with WPA (AES)

[펌] man iwconfig(무선 네트워크 인터페이스 환경 설정 명령어)

NAME
iwconfig - 무선 네트워크 인터페이스 환경 설정

DESCRIPTION
Iwconfig는 ifconfig와 유사하지만, 무선 인터페이스를 위한 것입니다.
그것은 특수한 무선 동작(예를 들면:주파수)와 같은 네트워크 인터페이스 변수 설정에 사용됩니다.
Iwconfig는 이들 변수와 무선통계(/proc/net/wireless로부터 추출된)을 보여주는데 사용될 수 있습니다.
모든 변수들과 통계는 장치 독립적이고, 각각의 드라이버는 하드웨어의 지원에 따라 그들의 일부만을 공급할 것입니다. 그리고 값의 범위는 변경될지도 모릅니다. 자세한 것은 각각의 장치의 man page를 참조.

PARAMETERS
essid ESSID를 설정합니다. (몇몇의 제품에서는 Domain ID로 불리워진다.)
단일 cell로 정의되는 AP Address 또는 NWID와 상반되는 것으로서, ESSID는 그룹의 개념(Cells)을 갖습니다.
몇몇의 카드에서 any, off를 사용하면 ESSID를 사용하여 사용하지 않게 할 수 있습니다.

Examples :
iwconfig eth0 essid any
iwconfig eth0 essid "My Network"
iwconfig eth0 essid -- "ANY"

nwid Network ID를 설정합니다.
pre-802.11에 대해서만 사용하고, 802.11 프로토콜에서는 ESSID와 AP address를 사용합니다.
몇몇의 카드에서 NWID를 설정하는 것을 통해 On, Off를 설정가능합니다.

Examples :
iwconfig eth0 nwid AB34
iwconfig eth0 nwid off

nick[name] 별명을 설정합니다.

Example :
iwconfig eth0 nickname "My Linux Node"

mode : 네트워크 topology에 따른 장치의 동작 모드를 설정합니다.
설정 가능한 모드는 다음과 같습니다.
Ad-Hoc : network composed of only one cell and without Access Point
Managed : node connects to a network composed of many Access Points, with roaming
Master : the node is the synchronisation master or acts as an Access Point
Repeater : the node forwards packets between other wireless nodes
Secondary : the node acts as a backup master/repeater
Monitor : the node is not associated with any cell and passively monitor all packets on the frequency

Example :
iwconfig eth0 mode Managed
iwconfig eth0 mode Ad-Hoc

freq/channel : 장치의 채널 또는 동작 주파수를 설정합니다.
1000이하는 채널값으로 사용하고 1000보다 큰 값은 주파수로 사용됨(단위:HZ)
채널은 보통 1부터 시작되고, 총 채널수를 확인하기 위해 'iwlist'를 사용해도 됩니다.

Examples :
iwconfig eth0 freq 2422000000
iwconfig eth0 freq 2.422G
iwconfig eth0 channel 3
iwconfig eth0 channel auto

ap 주소에 의해 Access Point에 저장하도록 합니다.
무선 scanning에 의해 레포트된 Access point는 MAC address와 다를 수 있습니다.
무선 연결이 PTP, ad-hoc에 따라 주소가 다르게 설정됩니다.

Example :
iwconfig eth0 ap 00:60:1D:01:23:45
iwconfig eth0 ap any
iwconfig eth0 ap off

rate/bit[rate]
bit-rate를 설정합니다.
bit-rate를 자동(auto)모드로 선택이 가능합니다.

Examples :
iwconfig eth0 rate 11M
iwconfig eth0 rate auto
iwconfig eth0 rate 5.5M auto

txpower
transmit power(단위dBm)을 설정합니다.
W는 Watt이면, P(dbm) = 30 + 10.log(W)가 됩니다.

Examples :
iwconfig eth0 txpower 15
iwconfig eth0 txpower 30mW
iwconfig eth0 txpower auto
iwconfig eth0 txpower off

아직 영어가 조금 부족한 관계로 자세한 사항은 영문 man 페이지를 참조해 주세요.
====================================================================
# man iwconfig

NAME
iwconfig - configure a wireless network interface

SYNOPSIS
iwconfig [interface]
iwconfig interface [essid X] [nwid N] [mode M] [freq F]
[channel C][sens S ][ap A ][nick NN ]
[rate R] [rts RT] [frag FT] [txpower T]
[enc E] [key K] [power P] [retry R]
[modu M] [commit]
iwconfig --help
iwconfig --version

DESCRIPTION
Iwconfig is similar to 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 fre-
quency). Iwconfig may also be used to display those parameters, and
the wireless statistics (extracted from /proc/net/wireless).

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.

PARAMETERS
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.
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.
With some cards, you may disable the ESSID checking (ESSID
promiscuous) with off or any (and on to reenable it).
If the ESSID of your network is one of the special keywords
(off, on or any), you should use -- to escape it.
Examples :
iwconfig eth0 essid any
iwconfig eth0 essid "My Network"
iwconfig eth0 essid -- "ANY"

nwid Set the Network ID. As all adjacent wireless networks share the
same medium, this parameter is used to differentiate them (cre-
ate logical colocated networks) and identify nodes belonging to
the same cell.
This parameter is only used for pre-802.11 hardware, the 802.11
protocol uses the ESSID and AP Address for this function.
With some cards, you may disable the Network ID checking (NWID
promiscuous) with off (and on to reenable it).
Examples :
iwconfig eth0 nwid AB34
iwconfig eth0 nwid off

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 configu-
ration goes. Only some wireless diagnostic tools may use it.
Example :
iwconfig eth0 nickname "My Linux Node"

mode Set the operating mode of the device, which depends on the net-
work topology. The mode can be Ad-Hoc (network composed of only
one cell and without Access Point), Managed (node connects to a
network composed of many Access Points, with roaming), Master
(the node is the synchronisation master or acts as an Access
Point), Repeater (the node forwards packets between other wire-
less nodes), Secondary (the node acts as a backup mas-
ter/repeater), Monitor (the node is not associated with any cell
and passively monitor all packets on the frequency) or Auto.
Example :
iwconfig eth0 mode Managed
iwconfig eth0 mode Ad-Hoc

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'.
Channels are usually numbered starting at 1, and you may use
iwlist(8) to get the total number of channels, list the avail-
able frequencies, and display the current frequency as a chan-
nel. Depending on regulations, some frequencies/channels may not
be available.
When using Managed mode, most often the Access Point dictates
the channel and the driver may refuse the setting of the fre-
quency. In Ad-Hoc mode, the frequency setting may only be used
at initial cell creation, and may be ignored when joining an
existing cell.
You may also use off or auto to let the card pick up the best
channel (when supported).
Examples :
iwconfig eth0 freq 2422000000
iwconfig eth0 freq 2.422G
iwconfig eth0 channel 3
iwconfig eth0 channel auto

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.
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).
You may also use off to re-enable automatic mode without chang-
ing the current Access Point, or you may use any or auto to
force the card to reassociate with the currently best Access
Point.
Example :
iwconfig eth0 ap 00:60:1D:01:23:45
iwconfig eth0 ap any
iwconfig eth0 ap off

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.
You may append the suffix k, M or G to the value (decimal multi-
plier : 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 auto to select automatic bit-rate mode (fallback to
lower rate on noisy channels), which is the default for most
cards, and fixed to revert back to fixed setting. If you specify
a bit-rate value and append auto, the driver will use all bit-
rates lower and equal than this value.
Examples :
iwconfig eth0 rate 11M
iwconfig eth0 rate auto
iwconfig eth0 rate 5.5M auto

txpower
For cards supporting multiple transmit powers, sets the transmit
power in dBm. If W is the power in Watt, the power in dBm is P =
30 + 10.log(W). If the value is postfixed by mW, it will be
automatically converted to dBm.
In addition, on and off enable and disable the radio, and auto
and fixed enable and disable power control (if those features
are available).
Examples :
iwconfig eth0 txpower 15
iwconfig eth0 txpower 30mW
iwconfig eth0 txpower auto
iwconfig eth0 txpower off

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.
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 sig-
nal 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 associ-
ated with the best AP, for low density of APs, a lower threshold
minimise the number of failed handoffs.
On more ancient card this parameter usually controls the defer
threshold, the lowest signal level for which the hardware con-
siders 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 trans-
mit. 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.
Example :
iwconfig eth0 sens -80
iwconfig eth0 sens 2

retry Most cards have MAC retransmissions, and some allow to set the
behaviour of the retry mechanism.
To set the maximum number of retries, enter limit `value'. This
is an absolute value (without unit), and the default (when noth-
ing is specified). To set the maximum length of time the MAC
should retry, enter lifetime `value'. By defaults, this value
in in seconds, append the suffix m or u to specify values in
milliseconds or microseconds.
You can also add the 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 min limit is the
short retry limit (non RTS/CTS packets).
Examples :
iwconfig eth0 retry 16
iwconfig eth0 retry lifetime 300m
iwconfig eth0 retry short 12
iwconfig eth0 retry min limit 8

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 maxi-
mum packet size disables the mechanism. You may also set this
parameter to auto, fixed or off.
Examples :
iwconfig eth0 rts 250
iwconfig eth0 rts off

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.
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.
You may also set this parameter to auto, fixed or off.
Examples :
iwconfig eth0 frag 512
iwconfig eth0 frag off

key/enc[ryption]
Used to manipulate encryption or scrambling keys and security
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, prepend or append [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 s: prefix.
Passphrase is currently not supported.
To change which key is the currently active key, just enter
[index] (without entering any key value).
off and on disable and reenable encryption.
The security mode may be open or restricted, and its meaning
depends on the card used. With most cards, in open mode no
authentication is used and the card may also accept non-
encrypted sessions, whereas in restricted mode only encrypted
sessions are accepted and the card will use authentication if
available.
If you need to set multiple keys, or set a key and change the
active key, you need to use multiple key directives. Arguments
can be put in any order, the last one will take precedence.
Examples :
iwconfig eth0 key 0123-4567-89
iwconfig eth0 key [3] 0123-4567-89
iwconfig eth0 key s:password [2]
iwconfig eth0 key [2]
iwconfig eth0 key open
iwconfig eth0 key off
iwconfig eth0 key restricted [3] 0123456789
iwconfig eth0 key 01-23 key 45-67 [4] key [4]

power Used to manipulate power management scheme parameters and mode.
To set the period between wake ups, enter period `value'. To
set the timeout before going back to sleep, enter timeout
`value'. To set the generic level of power saving, enter saving
`value'. You can also add the 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).
off and on disable and reenable power management. Finally, you
may set the power management mode to all (receive all packets),
unicast (receive unicast packets only, discard multicast and
broadcast) and multicast (receive multicast and broadcast only,
discard unicast packets).
Examples :
iwconfig eth0 power period 2
iwconfig eth0 power 500m unicast
iwconfig eth0 power timeout 300u all
iwconfig eth0 power saving 3
iwconfig eth0 power off
iwconfig eth0 power min period 2 power max period 4

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.
The list of available modulations depend on the card/driver and
can be displayed using iwlist modulation. Note that some
card/driver may not be able to select each modulation listed
independantly, some may come as a group. You may also set this
parameter to auto let the card/driver do its best.
Examples :
iwconfig eth0 modu 11g
iwconfig eth0 modu CCK OFDMa
iwconfig eth0 modu auto

commit Some cards may not apply changes done through Wireless Exten-
sions immediately (they may wait to aggregate the changes or
apply it only when the card is brought up via ifconfig). This
command (when available) forces the card to apply all pending
changes.
This is normally not needed, because the card will eventually
apply the changes, but can be useful for debugging.

DISPLAY
For each device which supports wireless extensions, iwconfig will dis-
play the name of the MAC protocol used (name of device for proprietary
protocols), the ESSID (Network Name), the NWID, the frequency (or chan-
nel), the sensitivity, the mode of operation, the Access Point address,
the bit-rate, the RTS threshold, the fragmentation threshold, the
encryption key and the power management settings (depending on avail-
ability).

The parameters displayed have the same meaning and values as the param-
eters you can set, please refer to the previous part for a detailed
explanation of them.
Some parameters are only displayed in short/abbreviated form (such as
encryption). You may use iwlist(8) to get all the details.
Some parameters have two modes (such as bitrate). If the value is pre-
fixed by `=', it means that the parameter is fixed and forced to that
value, if it is prefixed by `:', the parameter is in automatic mode and
the current value is shown (and may change).

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 Access Point parameter will be shown as Cell in ad-
hoc mode (for obvious reasons), but otherwise works the same.

If /proc/net/wireless exists, 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.

Link quality
Overall quality of the link. May be based on the level of con-
tention 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.

Signal level
Received signal strength (RSSI - how strong the received signal
is). May be arbitrary units or dBm, iwconfig uses driver meta
information to interpret the raw value given by /proc/net/wire-
less and display the proper unit or maximum value (using 8 bit
arithmetic). In Ad-Hoc mode, this may be undefined and you
should use iwspy.

Noise level
Background noise level (when no packet is transmitted). Similar
comments as for Signal level.

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).

Rx invalid crypt
Number of packets that the hardware was unable to decrypt. This
can be used to detect invalid encryption settings.

Rx invalid frag
Number of packets for which the hardware was not able to prop-
erly re-assemble the link layer fragments (most likely one was
missing).

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.

Invalid misc
Other packets lost in relation with specific wireless opera-
tions.

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
Jean Tourrilhes - jt@hpl.hp.com

FILES
/proc/net/wireless

SEE ALSO
ifconfig(8), iwspy(8), iwlist(8), iwevent(8), iwpriv(8), wireless(7).

wireless-tools 30 March 2006 IWCONFIG(8)
====================================================================
Return top

"그리움..."

no comment. yet