[Solved] Two virtual access points but only one works

Hi people, I’m trying to build a small trial consisting of the following.

One RB952Ui-5ac2nD. Ether1 is a DHCP client from a WAN link.
The 2.4GHz wifi radio has two virtual access points. Each VAP is on a seperate vlan, each vlan goes to its own bridge with its own DHCP server. There is a NAT masquerade out to Ether1.

The problem is only one VAP will work, the working one works 100%, I get DHCP assignments and masqueraded connectivity right through to the internet. The one that doesn’t work, the remote devices wont even connect to the AP.
Now if I disable the working VAP then the broken one comes good and works no problems exactly the same as the previously working VAP.



Here is the complete exported configuration
/interface bridge
add name=“Bridge VLAN 20”
add name=“Bridge VLAN 30”
/interface wireless
set [ find default-name=wlan1 ] country=australia disabled=no mode=ap-bridge wireless-protocol=802.11
/interface vlan
add interface=“Bridge VLAN 20” loop-protect-disable-time=0s loop-protect-send-interval=0s name=“vlan 20-1” vlan-id=20
add interface=“Bridge VLAN 30” loop-protect-disable-time=0s loop-protect-send-interval=0s name=“vlan 30-1” vlan-id=30
/interface wireless
add disabled=no keepalive-frames=disabled mac-address=6E:3B:6B:1D:6C:C4 master-interface=wlan1 mode=ap-bridge multicast-buffering=
disabled name=“2.4 vlan 20” ssid=“2.4 vlan 20” vlan-id=20 vlan-mode=use-tag wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
add disabled=no keepalive-frames=disabled mac-address=6E:3B:6B:1D:6C:C4 master-interface=wlan1 mode=ap-bridge multicast-buffering=
disabled name=“2.4 vlan 30” ssid=“2.4 vlan 30” vlan-id=30 vlan-mode=use-tag wds-cost-range=0 wds-default-cost=0 wps-mode=disabled
/interface vlan
add interface=“2.4 vlan 20” loop-protect-disable-time=0s loop-protect-send-interval=0s name=“2.4 vlan 20-1” vlan-id=20
add interface=“2.4 vlan 30” loop-protect-disable-time=0s loop-protect-send-interval=0s name=“2.4 vlan 30-1” vlan-id=30
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=“pool vlan 20” ranges=192.168.2.100-192.168.2.200
add name=“pool vlan 30” ranges=192.168.1.100-192.168.1.200
/ip dhcp-server
add address-pool=“pool vlan 20” disabled=no interface=“Bridge VLAN 20” name=“DHCP vlan 20”
add address-pool=“pool vlan 30” disabled=no interface=“Bridge VLAN 30” name=“DHCP vlan 30”
/interface bridge port
add bridge=“Bridge VLAN 30” interface=“2.4 vlan 30”
add bridge=“Bridge VLAN 30” interface=“vlan 30-1”
add bridge=“Bridge VLAN 30” interface=“2.4 vlan 30-1”
add bridge=“Bridge VLAN 20” interface=“2.4 vlan 20”
add bridge=“Bridge VLAN 20” interface=“2.4 vlan 20-1”
add bridge=“Bridge VLAN 20” interface=“vlan 20-1”
/ip address
add address=192.168.2.1/24 interface=“Bridge VLAN 20” network=192.168.2.0
add address=192.168.1.1/24 interface=“Bridge VLAN 30” network=192.168.1.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.1.0/24 gateway=192.168.1.1
add address=192.168.2.0/24 gateway=192.168.2.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/system clock
set time-zone-name=Australia/Perth
/system routerboard settings
set cpu-frequency=650MHz init-delay=0s protected-routerboot=disabled

Then just as I post this I spot that both VAP’s are using the same MAC. So I changed one and bingo they both start working.
Can anyone confirm if this is normal that you need to renumber those MAC’s when creating multiple VAP’s?

Your MAC address problem is probably the result of previous fiddling with the configuration.
Normally the first AP will have the real MAC of the interface, the second virtual AP will have
the same but with the 2nd bit of the first byte set (private MAC). But in your case they both
have that bit set.

Thanks pe1chl.

I’ve tried it again just to be sure I wasn’t doing something stupid.
First I tried to apply it to just a fresh completely unconfigured wireless interface, didn’t renumber.
Second I tried enabling and changing the and mode of the master interface to AP bridge, still not renumbering
Same thing once the Wireless protocol was set.

Once I set a country the next VAP renumbered correctly but subsequent ones didn’t

I’ll send support an email for a bug fix I think.

This is all with ROS 6.37.1

Well it turned out to be a retard keyboard error.
“add” and “copy” are subtly different…