<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>OpenWrtWiFiVirtualInterface</title><revhistory><revision><revnumber>2</revnumber><date>2016-04-06 20:19:54</date><authorinitials>Nemesis</authorinitials><revremark>fixed indentation</revremark></revision><revision><revnumber>1</revnumber><date>2011-11-23 22:17:37</date><authorinitials>ClauzClauz</authorinitials></revision></revhistory></articleinfo><section><title>openwrt multiple virtual wlans</title><section><title>sample configuration</title><para>cat /etc/config/network  </para><screen><![CDATA[config 'interface' 'lan'
        option 'ifname' 'eth0.1'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' 'x.x.x.x'
        option 'netmask' '255.255.255.0'
        option 'dns' '8.8.8.8'
]]><![CDATA[
config 'interface' 'wds'
        option 'ifname' 'wlan2'
        option 'proto' 'static'
        option 'ipaddr' 'x.x.x.x'
        option 'netmask' '255.255.255.0'
        option 'gateway' 'x.x.x.x'
        option 'dns' '8.8.8.8'
]]><![CDATA[
config 'interface' 'hotspot'
        option 'ifname' 'wlan1'
        option 'proto' 'static'
        option 'ipaddr' 'x.x.x.x'
        option 'netmask' '255.255.255.0']]></screen><para>cat /etc/config/wireless </para><screen><![CDATA[config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'channel' '11'
        option 'macaddr' '54:e6:fc:dc:ce:f6'
        option 'hwmode' '11ng'
        option 'htmode' 'HT20'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'country' 'IT'
        option 'disabled' '0'
        option 'txpower' '20'
]]><![CDATA[
config 'wifi-iface'
        option 'device' 'radio0'
        option 'mode' 'ap'
        option 'network' 'lan'
        option 'encryption' 'psk2'
        option 'key' 'password'
        option 'ssid' 'wifi1'
]]><![CDATA[
config 'wifi-iface'
        option 'device' 'radio0'
        option 'mode' 'ap'
        option 'network' 'hotspot'
        option 'ssid' 'wifi2'
]]><![CDATA[
config 'wifi-iface'
        option 'device' 'radio0'
        option 'mode' 'sta'
        option 'network' 'wds'
        option 'ssid' 'wifi3'
        option 'bssid' 'macaddrAP']]></screen></section></section></article>