howto:general:wireless:virtual_ap

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:general:wireless:virtual_ap [2015/05/22 07:56]
admin
howto:general:wireless:virtual_ap [2018/05/24 09:05] (current)
Line 20: Line 20:
 ==== Related topics ==== ==== Related topics ====
  
-  * [[documentation:​configuration:​uci|UCI]] 
   * [[documentation:​configuration:​config_files:​config_wireless|/​etc/​config/​wireless]]   * [[documentation:​configuration:​config_files:​config_wireless|/​etc/​config/​wireless]]
   ​   ​
Line 27: Line 26:
 ==== GUI ==== ==== GUI ====
  
-Not available, yet+In this tutorial we will create a virtual access point.
  
-==== UCI Config System ====+At first open your browser and go to your router'​s configurations website (default: 192.168.11.1). Log in to the router with your password.
  
-  * **Define virtual wireless interface** +Go to the __Network Settings__ tab and then to __Wireless__. Here you can see your radios
-__Note:​__ ​the device '​wl0'​ must be replaced by the device listed in your '​wifi-device'​ section! ((details see 'UCI config files' section)) +
-  +
-<​code>​ +
-uci add wireless wifi-iface +
-uci set wireless.@wifi-iface[-1].device=wl0 +
-uci set wireless.@wifi-iface[-1].mode=ap +
-uci set wireless.@wifi-iface[-1].network=guest +
-uci set wireless.@wifi-iface[-1].ssid=guest-wlan +
-uci set wireless.@wifi-iface[-1].encryption=mixed-psk +
-uci set wireless.@wifi-iface[-1].key=guest-access +
-</​code> ​    +
  
-  * **Store changes** +{{ :howto:general:wireless:virtualap.png?​nolink&​900 |}}
-<​code>​ +
-uci commit wireless +
-</​code>​ +
- +
-  * **Apply changes** +
-<​code>​ +
-wifi +
-</​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 //'​wifi-device'//​. +
-So the first step is to look for the wireless-device which should broadcast the new SSID. +
- +
-In our 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 working, the config needs to be reloaded: +
- +
-<​code>​ +
-wifi +
-</​code>​ +
- +
-As mentioned, the VAP results in an independent interface to the routers operating system.  +
-Generally the new interface name is the physical device, followed by a continuos number (wl0, wl0-1, wl0-2, ...) ((the section order in /​etc/​config/​wireless is significant)). +
- +
-<​code>​ +
-wl0-1     Link encap:​Ethernet ​ HWaddr CE:​E1:​D5:​9F:​12:​DF ​  +
-          UP BROADCAST RUNNING MULTICAST ​ MTU:​1500 ​ Metric:1 +
-          RX packets:0 errors:0 dropped:3 overruns:0 frame:​144036 +
-          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 +
-          collisions:​0 txqueuelen:​1000  +
-          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) +
- +
-</​code>​+
  
 +In the under right corner of every radio you will notice a button [+] which creates a new virtual access point. After creating the access point a SSID is required to apply the changes. Make sure to encrypt your vAP!
 ===== Troubleshooting ===== ===== Troubleshooting =====
  
howto/general/wireless/virtual_ap.1432281400.txt.gz · Last modified: 2018/05/24 09:05 (external edit)