Ok, I really thought I was going to figure this out today but massively failed. Here's a preface to what I have and what I'm setting up right now.
I have an EdgeRouter X that's acting as my Router, DHCP, firewall, etc.
I have an ASUS RT-AC68U flashed with Merlin 386.3_2 that's setup in access point mode.
Previously the AC68U had Tomato firmware on it and I'd setup a wifi network for normal use and an IOT/guest SSID that would be on a separate subnet and have firewall restrictions placed on it from the edgerouter. I more or less followed this guide to setup the IOT VLAN and DHCP (switch.20, 10.10.20.1/24). On the AC68U, I'd configured a virtual wifi interface similar to this guide but without DHCP and with the VID of 20. It all worked pretty great, no complaints.
Well...so why did I mess with it? I'm incorporating another AC68U into my setup to do AiMesh, so I have to use the ASUS WRT or Merlin firmwares to do that. As part of that transition, I'm trying to get this VLAN and virtual wifi stuff setup again, and I'm hitting a huge wall now. I'm trying to come up with a services-start script based on a few other threads I've seen. Here's what it currently looks like, but it's not working. I'm able to connect to the virtual ssid, but I'm not getting an IP assigned from the edgerouter's DHCP.
I'm using vlan20 because that's what I have setup on the edgerouter already (switch.20). I have Port 1 of the Edgerouter going to Port 4 of the AC68U. I'm also using the second guest wifi (so 0.2 instead of 0.1). Last, I'm using br3 because when I used br1 or br2, it looks like there's some stuff in the dnsmasq.conf for some reason that enables DHCP for those two bridges even though I'm in AP mode. This is mostly following what I'd seen in this post.
Anyway, no luck there. Spent a ton of time trying some variations of this without avail either. I also tried using port 0 (the WAN port) on the AC68U instead and tagging that instead, but same results. One post said they had luck by tagging the same port on VLAN1. I don't know how it worked for them, doing that just locks up my router (and requires a hard reset if I tried to doing it with the startup script).
I should also mention that I'm able to ping the AP at both IP subnets I'm using from the edge router's CLI. So 192.168.1.10 and 10.10.20.10 both return ping. From the AP I was able to ping the router of course for both cases (I had to disable my IOT firewall to get the 10.10.x.x ping to work). So...something's fishy with the tagging still I guess?
I'm not sure what else to try. Most of what I'm finding on the forums are folks that are using their AC68U as a router with the DHCP server, so I'm curious if that's really the difference here. Otherwise, it's also quite possible I'm missing something very fundamental.
I have an EdgeRouter X that's acting as my Router, DHCP, firewall, etc.
I have an ASUS RT-AC68U flashed with Merlin 386.3_2 that's setup in access point mode.
Previously the AC68U had Tomato firmware on it and I'd setup a wifi network for normal use and an IOT/guest SSID that would be on a separate subnet and have firewall restrictions placed on it from the edgerouter. I more or less followed this guide to setup the IOT VLAN and DHCP (switch.20, 10.10.20.1/24). On the AC68U, I'd configured a virtual wifi interface similar to this guide but without DHCP and with the VID of 20. It all worked pretty great, no complaints.
Well...so why did I mess with it? I'm incorporating another AC68U into my setup to do AiMesh, so I have to use the ASUS WRT or Merlin firmwares to do that. As part of that transition, I'm trying to get this VLAN and virtual wifi stuff setup again, and I'm hitting a huge wall now. I'm trying to come up with a services-start script based on a few other threads I've seen. Here's what it currently looks like, but it's not working. I'm able to connect to the virtual ssid, but I'm not getting an IP assigned from the edgerouter's DHCP.
I'm using vlan20 because that's what I have setup on the edgerouter already (switch.20). I have Port 1 of the Edgerouter going to Port 4 of the AC68U. I'm also using the second guest wifi (so 0.2 instead of 0.1). Last, I'm using br3 because when I used br1 or br2, it looks like there's some stuff in the dnsmasq.conf for some reason that enables DHCP for those two bridges even though I'm in AP mode. This is mostly following what I'd seen in this post.
Code:
#!/bin/sh
PATH="/sbin:/usr/sbin:/bin:/usr/bin:${PATH}"
robocfg vlan 20 ports "4t 5t"
vconfig add eth0 20
ifconfig vlan20 up
brctl addbr br3
brctl delif br0 wl0.2
brctl addif br3 wl0.2
brctl addif br3 vlan20
ifconfig br3 10.10.20.10 netmask 255.255.255.0 up
nvram set lan_ifnames="vlan1 eth1 eth2"
nvram set lan_ifname="br0"
nvram set lan1_ifnames="vlan20 wl0.2"
nvram set lan1_ifname="br3"
nvram commit
killall eapd
eapd
Anyway, no luck there. Spent a ton of time trying some variations of this without avail either. I also tried using port 0 (the WAN port) on the AC68U instead and tagging that instead, but same results. One post said they had luck by tagging the same port on VLAN1. I don't know how it worked for them, doing that just locks up my router (and requires a hard reset if I tried to doing it with the startup script).
I should also mention that I'm able to ping the AP at both IP subnets I'm using from the edge router's CLI. So 192.168.1.10 and 10.10.20.10 both return ping. From the AP I was able to ping the router of course for both cases (I had to disable my IOT firewall to get the 10.10.x.x ping to work). So...something's fishy with the tagging still I guess?
I'm not sure what else to try. Most of what I'm finding on the forums are folks that are using their AC68U as a router with the DHCP server, so I'm curious if that's really the difference here. Otherwise, it's also quite possible I'm missing something very fundamental.