Hi everyone,
I'm trying to configure a TL-WA701ND for deploying two separated SSID.
The first should get a Radius authentication and a dynamic VLAN assignment (and a dynamic interfaces creation).
The second should offer a guest WLAN routed on a separated VLAN.
Each one works fine, but when I try to work with the two interfaces toghether I can't understand why the dynamic bridged interface is not correctly created.
vlan.20 = guest VLAN
vlan.21 = dynamic assigned VLAN
/etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option hwmode '11g'
option htmode 'HT20'
option txpower '30'
option country 'US'
option channel '11'
# wlan0
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'WiFi'
option encryption 'wpa2'
option auth_server '192.168.33.2'
option auth_port '1812'
option auth_secret 'test'
option dynamic_vlan '2'
option vlan_file '/etc/config/hostapd.vlan'
option vlan_tagged_interface 'eth0'
option network 'lan'
# wlan0-1
config wifi-iface
option device 'radio0'
option mode 'ap'
option ssid 'WiFi_Guest'
option encryption 'psk2'
option key 'guestwifi'
option isolate '1'
option network 'vlan20'
/etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option force_link '1'
option type 'bridge'
option proto 'static'
option ipaddr '192.168.33.30'
option netmask '255.255.255.0'
option gateway '192.168.33.1'
option dns '192.168.10.1'
# used by wlan0-1
config interface 'vlan20'
option type 'bridge'
option proto 'none'
option ifname 'eth0.20'
FIRST TEST
wlan0 disabled, wlan0-1 enabled
When I try to connect to wlan0-1 (WiFi_Guest), everything works fine. The client is directed to the right vlan (guest / eth0.20).
As you can see the interfaces are correctly bridged.
root@OpenWrt:~# brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.74ea3aeed241 no eth0 wlan0
br-vlan20 7fff.74ea3aeed241 no eth0.20 wlan0-1
SECOND TEST
wlan0 enabled, wlan0-1 disabled
When I try to connect to wlan0 (WiFi), everything works fine.
Automatically hostapd communicates with the Radius server and creates the right interfaces that the client needs. Perfect.
As you can see the interfaces are correctly bridged.
root@OpenWrt:/etc/config# brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.74ea3aeed241 no eth0 wlan0
breth0.21 8000.74ea3aeed241 no eth0.21 wlan0.21
THIRD TEST
When I try to use toghether wlan0 and wlan0-1, something wrong happens.
As you can see the dynamic bridged interface breth0.21 don't contains the right interfaces (where is eth0.21?).
root@OpenWrt:~# brctl show
bridge name bridge id STP enabled interfaces
br-lan 7fff.74ea3aeed241 no eth0 wlan0
br-vlan20 7fff.74ea3aeed241 no eth0.20 wlan0-1
breth0.21 8000.74ea3aeed241 no wlan0.21
Could I use this manual command?
brctl addif breth0.21 eth0.21
But I can't manage breth0.21 if is up. And I don't know if it should solve the problem...
And I need dynamic vlan assignment! (I have like 10 different WLAN VLAN).
Can anyone give me some advice?
Thanks!