[Solved] Cannot add wireless interfaces to bridge

Hello everyone,

So i'm configuring Openwrt as a secondary access point, so it won't be running DHCP, DNS, etc. The wireless interfaces need to be bridged to br-lan, so DHCP requests from clients get passed to main router.

The resultant config:

config device
        option name 'br-lan'
        option type 'bridge'
        option ipv6 '0'
        list ports 'eth1'
        list ports 'eth2'
        list ports 'lan1'
        list ports 'lan2'
        list ports 'lan3'
        list ports 'wan'
        list ports 'phy0.0-ap0'
        list ports 'phy0.1-ap0'

However, the wireless interfaces fail to be added to the br-lan bridge. Maybe because when the network service is started, hostapd is yet to be started and create the interfaces?

I have to add them manually:

brctl addif  br-lan phy0.0-ap0
brctl addif  br-lan phy0.1-ap0

After this, DHCP works fine and clients connect to network.

Any way to avoid this manual step?

Reset to defaults then follow

1 Like

Yeah, i have done those initial steps. It doesn't work, DHCP traffic never gets passed to main router. Wireless interfaces need to be bridged.

Do not refer to wifi interfaces in /etc/config/network. In the wifi-iface section of /etc/config/wireless, use option network lan. That will propagate with the script finding that br-lan is the lan network's device and adding the AP to the bridge.

2 Likes

As already stated, no, the wireless interfaces don't need to be included in the bridge. They get linked against the network name.

Let's take a look at your configuration.

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network
cat /etc/config/wireless
cat /etc/config/dhcp
cat /etc/config/firewall
1 Like

Great, this worked perfectly, it was so simply after all. Thanks guys!

Screenshot as it might help someone else:

Glad to hear it's now working!

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

1 Like