DSA Unmanaged VLANS no longer connect

I previously had WIFI and LAN VLANs in unmanaged forward to upstream DHCP servers.
Now, my backup configs no longer work (even if i revert to older openwrt versions).

I am using a comfast e395ax (MT7981AA) AP with the wan getting untagged address for local management. then various vlans for wifi and the lan port.

I reset back to factory and created the below minimalist config to test.
Never the lan nor wifi get an IP. however, if i set up a dhcp server on interfaces the clients do get an ip. i disabled the firewall for testing.

onfig 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 'fd79:5296:bf26::/48'
        option packet_steering '1'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'lan1'
        option bridge_empty '1'
        option ipv6 '0'

config interface 'lan'
        option device 'br-lan.26'
        option proto 'none'
        option delegate '0'

config interface 'wan'
        option device 'eth1'
        option proto 'dhcp'

config interface 'wan6'
        option device 'eth1'
        option proto 'dhcpv6'
        option reqaddress 'try'
        option reqprefix 'auto'

config bridge-vlan
        option device 'br-lan'
        option vlan '1'
        list ports 'lan1'

config bridge-vlan
        option device 'br-lan'
        option vlan '26'

config bridge-vlan
        option device 'br-lan'
        option vlan '40'

config interface 'wifi'
        option proto 'none'
        option device 'br-lan.40'
        option delegate '0'

config device
        option name 'br-lan.26'
        option type '8021q'
        option ifname 'br-lan'
        option vid '26'
        option ipv6 '0'

config device
        option name 'br-lan.40'
        option type '8021q'
        option ifname 'br-lan'
        option vid '40'
        option ipv6 '0'


This is not valid but should be relatively easy to resolve.

Remove he bridge empty and IPv6 lines below

I'm assuming VLAN 1 is untagged on the uplink... specify that explicitly by adding :u* like this:

config bridge-vlan
        option device 'br-lan'
        option vlan '1'
        list ports 'lan1:u*'

These don't have a port associated:

To fix those, add the following to each of the stanzas:

        list ports 'lan1:t'

Delete these:

Reboot and test again.

Hi Peter,

I made those mods per below, but neither wifi (40) nor lan(26) get an id.
You are correct, the wan port should be untagged with dhcp for device mgmt.

I think it might have something to do with the below?


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 'fd79:5296:bf26::/48'
	option packet_steering '1'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'

config interface 'lan'
	option device 'br-lan.26'
	option proto 'none'
	option delegate '0'

config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'

config bridge-vlan
	option device 'br-lan'
	option vlan '1'
	list ports 'lan1:u*'

config bridge-vlan
	option device 'br-lan'
	option vlan '26'
	list ports 'lan1:t'

config bridge-vlan
	option device 'br-lan'
	option vlan '40'
	list ports 'lan1:t'

config interface 'wifi'
	option proto 'none'
	option device 'br-lan.40'
	option delegate '0'

results of tests

root@OpenWrt:/etc/config# cat /sys/class/net/br-lan/bridge/vlan_filtering
1
root@OpenWrt:/etc/config# bridge vlan show
-ash: bridge: not found
root@OpenWrt:/etc/config# dmesg | grep -i bridge
[    1.476667] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
root@OpenWrt:/etc/config# dmesg | grep -i vlan
[    1.489869] 8021q: 802.1Q VLAN Support v1.8
root@OpenWrt:/etc/config# ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1504 qdisc mq state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:7a brd ff:ff:ff:ff:ff:ff
4: lan1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
13: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
14: br-lan.26@br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
15: br-lan.40@br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:79 brd ff:ff:ff:ff:ff:ff
16: phy0-ap0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-lan state UP qlen 1000
    link/ether 40:a5:ef:0e:1f:7b brd ff:ff:ff:ff:ff:ff
root@OpenWrt:/etc/config# bridge link show
-ash: bridge: not found
root@OpenWrt:/etc/config# 

Hi Peter,
it seems the bug report I referenced goes back even further.

I am using a Comfast E395AX which has an MT7531 switch plus MT7981AA CPU with the architecture below. There is only a single LAN port and single WAN port despite the chip capabilities.

my setup on the wan port was connected untagged to the upstream switch.
my manage network was the untagged ethernet. the wan dhcp received 20.x net
The lan ports are unmanaged as receive 26.x from the vlan26 and pvid 26
The wifi bridge was unmanaged and receive 40.x from vlan40

with swconfig i never had a problem connecting to the APs on the 20.x net
when I first setup after the DSA change, i created a bridge for each network and paired it with a separate vlan for eth1.26, eth1.40.
This seemed to work with the last config backup end 08.25
after the attendsysupgrade, i lost connection to the device. using your guidance above I setup a test environment and added a specific mgmt vlan with a static ip.
I can see the same issue describe in above, in 23.05.04. If eth1 is part of the br-lan bridge, the untagged wan port never gets a dhcp, but all other functionality works.
the setup below only works when eth1 and lan1 are part of the bridge. but dhcp doesn’t
i am doing something wrong? ideally i would like the management on the dhcp address so i don’t have to change my whole 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 'fdc0:a06c:5306::/48'

config device
	option type 'bridge'
	option name 'br-lan'
	list ports 'eth1'
	list ports 'lan1'

config bridge-vlan
	option device 'br-lan'
	option vlan '10'
	list ports 'lan1:t'

config bridge-vlan
	option device 'br-lan'
	option vlan '26'
	list ports 'eth1:t'
	list ports 'lan1'

config bridge-vlan
	option device 'br-lan'
	option vlan '40'
	list ports 'eth1:t'

config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'

config interface 'lan26'
	option device 'br-lan.26'
	option proto 'none'

config interface 'wifi'
	option proto 'none'
	option device 'br-lan.40'

config interface 'mgmt'
	option proto 'static'
	option device 'br-lan.10'
	option ipaddr '192.168.10.15'
	option netmask '255.255.255.0'   

EDIT: I fixed it by adding below

config bridge-vlan
	option device 'br-lan'
	option vlan '1'
	list ports 'eth1:u'
    option pvid '1'

and changing

config interface 'wan'
	option device 'eth1'
	option proto 'dhcp'

TO
config interface 'wan'
	option device 'br-lan.1'
	option proto 'dhcp'

I'll review this a bit more later, but...

The last line above is not how you designate PVID.... instead, you use a * like this:

config bridge-vlan
	option device 'br-lan'
	option vlan '1'
	list ports 'eth1:u*'

This was the big one...

The reason this was necessary is that you put the eth1 port into the bridge, so it was no longer available for use as a unique device.