I have an APU4 board running OpenWRT 21.02.3. I have two VLANs (3 and 99), and a trunk port out to a Wireless AP which broadcasts two SSIDs; one VLAN assigned to each SSID.
I have internet access through both of these. However, I can no longer access the web interface of the Dumb AP (a TP-Link WA1201 running TP-Link's stock firmware) when connected via WiFi.
How might I diagnose, and subsequently resolve, the problem so that I can configure the AP, updated firmware etc?
Here's the config for the router:
/etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd0b:f043:06d3::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth1'
list ports 'eth2'
list ports 'eth3'
option bridge_empty '1'
config interface 'lan'
option proto 'static'
option netmask '255.255.255.0'
option device 'br-lan.99'
option ipaddr '10.0.99.1'
option ip6assign '64'
option ip6hint 'AA'
list ip6class 'local'
config interface 'wan'
option proto 'dhcp'
option device 'eth0'
option peerdns '0'
option dns '76.76.2.2'
config interface 'wan6'
option proto 'dhcpv6'
option device '@wan'
option reqaddress 'try'
option reqprefix 'auto'
option peerdns '0'
option dns '2606:1a40::2'
config bridge-vlan
option device 'br-lan'
option vlan '99'
list ports 'eth1:t'
list ports 'eth2:u*'
list ports 'eth3:u*'
config bridge-vlan
option device 'br-lan'
list ports 'eth1:t'
option vlan '3'
config interface 'guest'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '64'
option ip6hint 'BB'
option device 'br-lan.3'
option ipaddr '10.0.3.1'
So I don't know the specifics of the TP-Link firmware, but in theory it should be configured to have an address on your trusted/management network, and usually no address (just simply bridged) for the other network.
Can you reach the AP when you are connected to the wired network?
When did you last have access? What did you change that stopped access?
Did you set this address on the AP? What was the actual address you used previously to access the AP?
My guess is that you did not tell the AP that the management network should be tagged... so it's probably looking for an untagged network. This would potentially explain why the guest network isn't working, too... it may be expecting an untagged network there.
I had access right up until the point that I set the VLAN IDs on the AP. I created one SSID and set VLAN ID 99; and another SSID with VLAN ID 3. At that point, I had wireless internet access from 10.0.99.1/24 but NOT the guest network
Yes, I set that as (failed) experiment. Originally, the AP was available at 192.168.0.254
This is as sophisticated as the VLAN setup gets on the AP:
For the management network interface, there is another option to use a VLAN ID (or not).
My guess is that you did not correctly set the guest SSID VLAN ID (which would explain why the guest VLAN isn't working), but that you also didn't set the management interface's VLAN... or if you did, you didn't simultaneously change the IP address to either DHCP or one in your .99 network.
The last time you accessed the AP, was it set to a static IP of 192.168.0.254, or was it set to another static IP or DHCP? And did you set the VLAN ID for the management network?
I've gone back a couple of steps. The AP has been factory reset and is accessible from 192.168.0.254.
I have wired and wireless access from the guest VLAN (VLAN ID 3).
I have wired access from the management VLAN (VLAN ID 99).
As soon as I set the VLAN ID in the screenshot below, I'll have wired and wireless access from the management VLAN, but only wired access from the guest VLAN.
You're right - definitely some frustration on my part. Thanks for your help.
Here is the default network configuration on the AP. My inclination is to change this to set the IP address to 10.0.99.2 and the gateway to 10.0.99.1, and disabling the DHCP server; then trying to access the AP at 10.0.99.2 from a wired connection...