This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
howto:general:virtual_ap [2015/05/12 09:30] admin [UCI config files (native)] |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Virtual AP ====== | ||
| - | |||
| - | Even on one single physical wireless chip, it is possible to broadcast multiple wireless SSID's. | ||
| - | In that case we are talking about //'__V__irtual __A__ccess-__P__oints'// or //'VAP's'//. | ||
| - | |||
| - | A VAP is basically a logical //'wifi-interface'// which points to an existing //'wifi-device'// (physical interface). | ||
| - | Therefore it can be treated as any other interface as well. It can apply own encryption-settings, filter- and firewall-rules, can be put into a bridge and so on. | ||
| - | |||
| - | These instructions shows how to add a new virtual wireless interface to the routers configuration. | ||
| - | |||
| - | |||
| - | ===== Overview ===== | ||
| - | |||
| - | ==== Level of difficulty === | ||
| - | |||
| - | Easy | ||
| - | |||
| - | |||
| - | |||
| - | ==== Related topics ==== | ||
| - | |||
| - | * [[documentation:configuration:uci|UCI]] | ||
| - | * [[documentation:configuration:config_files:config_wireless|/etc/config/wireless]] | ||
| - | | ||
| - | ===== Instructions ===== | ||
| - | |||
| - | ==== GUI ==== | ||
| - | |||
| - | Not available, yet | ||
| - | |||
| - | ==== UCI Config System ==== | ||
| - | |||
| - | * **Add something** | ||
| - | <code> | ||
| - | ... | ||
| - | </code> | ||
| - | |||
| - | * **Store changes** | ||
| - | <code> | ||
| - | uci commit xxx | ||
| - | </code> | ||
| - | |||
| - | * **Apply changes** | ||
| - | <code> | ||
| - | /etc/init.d/xxx restart | ||
| - | </code> | ||
| - | |||
| - | ==== UCI config files (native) ==== | ||
| - | |||
| - | Configuration file: [[documentation:configuration:config_files:config_wireless|/etc/config/config_wireless]] | ||
| - | |||
| - | As stated before, a vap consists of a new 'wifi-interface' section in the wireless configuration file, which points to an existing //'wireless-device'//. | ||
| - | So the first step is to look for the wireless-device which should broadcast the new SSID. | ||
| - | |||
| - | Here for an example, the device we are looking for is '**wl0**': | ||
| - | <code> | ||
| - | config wifi-device 'wl0' | ||
| - | option device 'wl0' | ||
| - | option type 'brcm' | ||
| - | option country 'CH' | ||
| - | option hwmode '11g' | ||
| - | option htmode 'HT20' | ||
| - | option channel '0' | ||
| - | option disabled '0' | ||
| - | </code> | ||
| - | |||
| - | * **Add wireless-interface** | ||
| - | |||
| - | Now we can add the new wireless-interface with the //'device'//-option set to our physical device. | ||
| - | <code> | ||
| - | config wifi-iface | ||
| - | option device 'wl0' | ||
| - | option mode 'ap' | ||
| - | option network 'guest' | ||
| - | option ssid 'guest-wlan' | ||
| - | option encryption 'mixed-psk' | ||
| - | option key 'guest-access' | ||
| - | </code> | ||
| - | |||
| - | * **Apply changes** | ||
| - | |||
| - | To get the new setup operating the config needs to be reloaded. | ||
| - | |||
| - | <code> | ||
| - | root@dd-wrt-nxt:~# wifi | ||
| - | </code> | ||
| - | |||
| - | |||
| - | ===== Troubleshooting ===== | ||
| - | |||
| - | Not available, yet | ||
| - | |||
| - | |||
| - | |||