I'm trying to properly setup VLAN filtering on my device (Mikrotik CapAC) that is using OpenWrt v21.02 as dump AP.
My goal is to have VLAN9 as management with static IP, and VLAN11 as IoT.
I've tried to copy configuration from others who successfully managed to install OpenWRT on the same device, but couldn't make it to work.
I have OpnSense router with VLAN9 and VLAN11 DHCP configuration. I also have HP Switch which has VLAN9 and VLAN11 as tagged on the port where I connect my AP.
My current issues are:
- Unable to connect to OpenWRT UI when the device is connected to the network and router won't see it connected to the network either.
- When I connect to my test Wifi SSID, the device won't receive IP address
Is there something obvious that I'm missing from my configuration?
Below is my current test configuration:
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 'fd3d:3841:21d2::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
list ports 'eth0.2'
config device
option name 'eth0.1'
option macaddr 'cc:2d:e0:a6:d0:4d'
config bridge-vlan
option device 'br-lan'
option vlan '9'
list ports 'eth0.1:u*'
list ports 'eth0.2:u'
config interface 'lan'
option device 'br-lan.9'
option proto 'static'
option ipaddr '192.168.88.11'
option netmask '255.255.255.0'
option gateway '192.168.88.1'
option ip6assign '60'
list dns '1.1.1.1'
list dns '1.0.0.1'
config bridge-vlan
option device 'br-lan'
option vlan '11'
list ports 'eth0.2:t'
config device
option name 'eth0.2'
option macaddr 'cc:2d:e0:a6:d0:4c'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '4 0t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0t'
config interface 'IoT'
option proto 'none'
option device 'br-lan.11'
wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/a000000.wifi'
option channel '1'
option band '2g'
option htmode 'HT20'
option country 'US'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option mode 'ap'
option ssid 'IOT'
option isolate '1'
option encryption 'psk2+ccmp'
option key 'myiotpassword'
option network 'IoT'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/soc/a800000.wifi'
option channel '36'
option band '5g'
option htmode 'VHT80'
option disabled '1'
config wifi-iface 'default_radio1'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'