OpenWRT WiFi Bridging when WDS does NOT work

wiki.TerraBase.info
Revision as of 01:37, 27 January 2026 by Root (talk | contribs) (Created page with "The below 'configs' work on a Cudy AP3000. It has a single Wired LAN Interface. And after double checking the same MAC Address is either assigned at a hardware level to both the Wired and Wireless Interfaces, or OpenWRT's drivers for this device do it during start up. And yes, that's not a typo for all those duplicate IPs on all those interfaces shown below in /etc/config/network. It was the best way to make it work. OpenWRT doesn't have an issue with it, plus as no...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The below 'configs' work on a Cudy AP3000. It has a single Wired LAN Interface. And after double checking the same MAC Address is either assigned at a hardware level to both the Wired and Wireless Interfaces, or OpenWRT's drivers for this device do it during start up.

And yes, that's not a typo for all those duplicate IPs on all those interfaces shown below in /etc/config/network. It was the best way to make it work. OpenWRT doesn't have an issue with it, plus as noted, there's only one MAC Address on the device, so it really doesn't matter.

OpenWRT 25.10.5 was used in early 2026.

/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 'fd32:3b0a:dbd4::/48'
	option packet_steering '1'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'eth0'
	option stp '1'

config interface 'LAN_Bridge'
	option device 'br-lan'
	option proto 'static'
	option ip6assign '60'
	list ipaddr '192.168.1.254/24'

config interface 'WiFi'
	option proto 'static'
	list ipaddr '192.168.1.254/24'
	option gateway '192.168.1.1'
	list dns '192.168.1.1'
	option device 'phy0-sta0'

config interface 'RelayD_Bridge'
	option proto 'relay'
	list network 'LAN_Bridge'
	list network 'WiFi'
	list dns '192.168.1.1'
	option ipaddr '192.168.1.254'

/etc/config/wireless (only modify the wifi-interface, leave the wifi-device alone)

config wifi-device 'radio0'
	option type 'mac80211'
	option path 'platform/soc/18000000.wifi'
	option band '2g'
	option channel 'auto'
	option htmode 'HT20'
	option cell_density '0'

config wifi-iface 'PHY0STA0'
	option device 'radio0'
	option mode 'sta'
	option network 'WiFi'
	option ssid 'WhateverSSID'
	option encryption 'psk-mixed'
	option key 'WhatEverPassword'

/etc/config/firewall

config defaults
	option syn_flood '1'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'

config zone
	option name 'lan'
	option input 'ACCEPT'
	option output 'ACCEPT'
	option forward 'ACCEPT'
	list network 'LAN_Bridge'
	list network 'WiFi'
	list network 'RelayD_Bridge'