![Atheros AP222A Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/atheros/ap222a/ap222a_user-manual_2998481028.webp)
COMPANY CONFIDENTIAL
27
2.5.1.2.2 activateVAP
/etc/ath/activateVAP VAP_id BRG_id SECmode SECparam
VAP_id
The specific VAP, as in ath0, ath1, etc.
BRG_id
The bridge to add the VAP to, as in br0. Specifying “-“ will
keep the VAP from being added to any bridge.
SECmode
Security mode. One of WPA, WEP, WSC, or NONE. This can be left
blank for the default mode of NONE
SECparam
Parameter for the security mode. Typically the file containing
the parameters for the selected security mode.
This script activates the VAP by calling “ifconfig vap_id up”, and properly configures the selected security
mode. If the VAP is a station mode VAP, the station scan module will be loaded and activated.
All VAPs
must be created prior to calling activateVAP on any VAP.
Once this script is executed, VAP
configuration is subject to the restrictions as specified in section 0. For details on security modes and
configuration files, see section 3.2.
2.5.1.2.3 killVAP
/etc/ath/killVAP VAP_id
VAP_id The specific VAP to remove, or “all” to remove all
This script will deconfigure and remove the specified VAP. Optionally, if “all” is specified as the VAP_id, all
VAPs are removed, and all driver modules are unloaded. This is how the apdown script is now implemented.
This script will remove the indicated VAP(s), and remove the associated instances of hostapd,
wpa_supplicant, or wsc. This script does not rely on any environmental variables.
2.5.1.3 Compatibility Scripts
Two scripts have been kept from earlier system operations, apup and apdown. These were kept to allow for backward
compatibility with existing test automation systems existing at Atheros, and possible at customer locations. The
internals have changed significantly, however. Each script should be used with the concept of 1) setting all required
environmental variables, and 2) executing the script.
2.5.1.3.1 apup
Format:
/etc/ath/apup
This is the main script for bringing up various AP configurations that is compatible with the previous methods
for configuring the AP. This script is now completely parameterized, AND SHOULD NOT BE MODIFIED.
Again, the concept of setting environmental variables, then executing this script, is the designed mode of
operation.
The main environmental variable that affects the operation of this script is AP_STARTMODE. This can be
set to standard, repeater, rootap, client, multi or multivlan. The default value is “standard”, which is a single
standard AP instance. See the configuration descriptions in section 3 for the various uses of the
AP_STARTMODE variable.
2.5.1.3.2 apdown
Format:
/etc/ath/apdown
This script is simply a remapping of “killVAP all”. This will remove all VAPs, and unload all driver
modules.
Содержание AP222A
Страница 1: ...AP222A AP User s Manual...
Страница 22: ...COMPANY CONFIDENTIAL 21 Figure 6 VAP Configuration Page 2 of 2...