Hello everyone!
I'm trying to implement DSA VLANS on WiFi. The issue is that I can't get all my VLANS to get DHCP on WiFi.
Ethernet works as intended on assigned ports.
The MGMT(vlan99) works on WiFi, Home(vlan100) and IoT(vlan101) do not.
My topology is the following:
- OPNSENSE which handles DHCP, DNS and firewalling. Also 1 port has VLANS 99, 100 and 101.
- Xiaomi Mi Router 4A Gigabit Edition with OpenWrt 23.05.3 flashed working as a managed switch and AP.
VLANS on OPNSENSE provide the following IPs: - MGMT - VLAN 99 - 10.10.99.1-100
- HOME - VLAN 100 - 10.10.100.1-100
- IoT - VLAN 101 - 10.10.101.1-100
You can find config below:
ubus call system board
{
"kernel": "5.15.150",
"hostname": "OpenWrt",
"system": "MediaTek MT7621 ver:1 eco:3",
"model": "Xiaomi Mi Router 4A Gigabit Edition",
"board_name": "xiaomi,mi-router-4a-gigabit",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "23.05.3",
"revision": "r23809-234f1a2efa",
"target": "ramips/mt7621",
"description": "OpenWrt 23.05.3 r23809-234f1a2efa"
}
}
cat /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 'fdf5:0b89:8836::/48'
option packet_steering '1'
config device
option name 'br-lan'
option type 'bridge'
list ports 'lan2'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device
option type 'bridge'
option name 'Bridge_Home'
option bridge_empty '1'
list ports 'lan1'
list ports 'wan'
config bridge-vlan
option device 'Bridge_Home'
option vlan '99'
list ports 'wan:t*'
config bridge-vlan
option device 'Bridge_Home'
option vlan '100'
list ports 'lan1:u*'
list ports 'wan:t'
config bridge-vlan
option device 'Bridge_Home'
option vlan '101'
list ports 'wan:t'
config interface 'VLAN_MGMT'
option proto 'dhcp'
option device 'Bridge_Home.99'
config interface 'VLAN_IoT'
option proto 'none'
option device 'Bridge_Home.101'
option type 'bridge'
config interface 'VLAN_Home'
option proto 'none'
option device 'Bridge_Home.100'
option type 'bridge'
cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:01.0/0000:02:00.0'
option channel '1'
option band '2g'
option htmode 'HT20'
option cell_density '0'
config wifi-device 'radio1'
option type 'mac80211'
option path '1e140000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0'
option channel '36'
option band '5g'
option htmode 'VHT80'
config wifi-iface 'wifinet0'
option device 'radio0'
option mode 'ap'
option ssid 'OpenWrt-IoT'
option encryption 'none'
option network 'VLAN_IoT'
config wifi-iface 'wifinet1'
option device 'radio0'
option mode 'ap'
option ssid 'OpenWrt-Home'
option encryption 'none'
option network 'VLAN_Home'
config wifi-iface 'wifinet2'
option device 'radio0'
option mode 'ap'
option ssid 'OpenWrt-MGMT'
option encryption 'none'
option network 'VLAN_MGMT'
cat /etc/config/firewall
config defaults
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option synflood_protect '1'
cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
list ra_flags 'managed-config'
list ra_flags 'other-config'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4
LAN bridge has DHCP assigned and is issued until I finish my config, will be deleted in the future.
Can't wrap my head around this issue, probably will have to wipe the config and start fresh, but what should I do differently?
Thank you!