Bridge does not forward broadcasts

Hello, I am trying to turn a Xiaomi Gigabit 4a (OpenWrt SNAPSHOT, r15476-a1a7f3274e) to a switch with:

wan interface is tagged for vlans 100 and 30
lan1 and lan2 untagged for vlan 100

I have 2 bridges one with wan.100, lan1 and lan2 and another with wan.30 and wlan0 and wlan1

The wireless bridge works as expected clients connect and get an ip.

The wired bridge does not seem to forward DHCP Discover from lan2 to wan.100 though. The bridge itself gets an IP as expected.

My network config:

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.packet_steering='1'
network.lan=interface
network.lan.type='bridge'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.lan.proto='dhcp'
network.lan.ifname='lan1 lan2 wan.100'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='100'
network.@switch_vlan[0].vid='100'
network.@switch_vlan[0].ports='2 3 4t 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].ports='4t 6t'
network.@switch_vlan[1].vlan='30'
network.@switch_vlan[1].vid='30'
network.wifilan=interface
network.wifilan.proto='dhcp'
network.wifilan.type='bridge'
network.wifilan.ifname='wan.30 wlan0-1 wlan0 wlan1'

Tcp dump shows DISCOVER in br-lan:

tcpdump -i br-lan
14:55:18.746416 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 58:67:1a:aa:bb:00 (oui Unknown), length 275
....other vlan traffic....

but that packet does not make it to wan.100

Firewall is disabled.

Any thoughts?

in DSA land this is ancient... please update to recent master... do not keep config... follow config guidance in the DSA thread...

1 Like

Thanks for pointing in the right direction, I completely missed https://forum.openwrt.org/t/mini-tutorial-for-dsa-network-config/96998 which has the correct way to configure vlan bridges in DSA.

1 Like

you can have the solution on this one for posting a link to that thread which deserves all the credit...

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.