|
本帖最后由 rockily 于 2009-7-9 08:34 编辑
network配置参考默认配置
注:不能为TL-wr941n的network配置switch。现在还不支持。((currently broadcom only))。最好也不要配置VLAN。
OPENWRT在TP-wr941n下的无线部分wireless配置
config wifi-device "wifi0"
option type "atheros"
option channel "5"
option hwmode "11n"
config wifi-iface
option device "wifi0"
# option network lan
option mode "ap"
option ssid "OpenWrt"
option hidden "0"
option encryption "none"
无线部分的通用配置如下。(各部分的说明参考opwnwrt文档)
config wifi-device wifi device name
option type broadcom, atheros, mac80211
option country us, uk, fr, de, etc.
option channel 1-14
option maxassoc 1-128 (broadcom only)
option distance 1-n
option hwmode 11b, 11g, 11a, 11bg (atheros, mac80211)
option rxantenna 0,1,2 (atheros, broadcom)
option txantenna 0,1,2 (atheros, broadcom)
option txpower transmission power in dBm
config wifi-iface
option network the interface you want wifi to bridge with
option device wifi0, wifi1, wifi2, wifiN
option mode ap, sta, adhoc, monitor, or wds
option txpower (deprecated) transmission power in dBm
option ssid ssid name
option bssid bssid address
option encryption none, wep, psk, psk2, wpa, wpa2
option key encryption key
option key1 key 1
option key2 key 2
option key3 key 3
option key4 key 4
option server ip address
option port port
option hidden 0,1
option isolate 0,1
Options for the wifi-device:
type
The driver to use for this interface.
country
The country code used to determine the regulatory settings.
channel
The wifi channel (e.g. 1-14, depending on your country setting).
maxassoc
Optional: Maximum number of associated clients. This feature is supported only on the broadcom chipset.
distance
Optional: Distance between the ap and the furthest client in meters. This feature is supported only on the atheros chipset.
mode
The frequency band (b, g, bg, a). This feature is only supported on the atheros chipset.
diversity
Optional: Enable diversity for the Wi-Fi device. This feature is supported only on the atheros chipset.
rxantenna
Optional: Antenna identifier (0, 1 or 2) for reception. This feature is supported by atheros and some broadcom chipsets.
txantenna
Optional: Antenna identifier (0, 1 or 2) for emission. This feature is supported by atheros and some broadcom chipsets.
txpower Set the transmission power to be used. The amount is specified in dBm.
Options for the wifi-iface:
network
Selects the interface section from /etc/config/network to be used with this interface
device
Set the wifi device name.
mode
Operating mode:
ap
Access point mode
sta
Client mode
adhoc
Ad-Hoc mode
monitor
Monitor mode
wds
WDS point-to-point link
ssid Set the SSID to be used on the wifi device.
bssid Set the BSSID address to be used for wds to set the mac address of the other wds unit.
txpower (Deprecated, set in wifi-device) Set the transmission power to be used. The amount is specified in dBm.
encryption
Encryption setting. Accepts the following values:
none
wep
psk, psk2
WPA(2) Pre-shared Key
wpa, wpa2
WPA(2) RADIUS
key, key1, key2, key3, key4 (wep, wpa and psk)
WEP key, WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode)
server (wpa)
The RADIUS server ip address
port (wpa)
The RADIUS server port (defaults to 1812)
hidden
0 broadcasts the ssid; 1 disables broadcasting of the ssid
isolate
Optional: Isolation is a mode usually set on hotspots that limits the clients to communicate only with the AP and not with other wireless clients. 0 disables ap isolation (default); 1 enables ap isolation |
|