I updated a Dynalink DL-WRX36 from 24.10.2 to 24.10.3 today and noticed it modified the network configuration into a non-functioning state. The configuration specifies a couple vlans to expose as wireless networks.
Original (working) /etc/config/network
...
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan1:t'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'IOT'
option proto 'dhcp'
option device 'br-lan.3'
option type 'bridge'
config bridge-vlan
option device 'br-lan'
option vlan '4'
list ports 'lan1:t'
config interface 'Guest'
option proto 'dhcp'
option device 'br-lan.4'
option type 'bridge'
After updating to 24.10.3 the configuration was changed to the following where the interfaces were no longer able to receive DHCP addresses:
...
config bridge-vlan
option device 'br-lan'
option vlan '3'
list ports 'lan1:t'
list ports 'lan2'
list ports 'lan3'
list ports 'lan4'
config interface 'IOT'
option proto 'dhcp'
option device 'br-IOT'
config bridge-vlan
option device 'br-lan'
option vlan '4'
list ports 'lan1:t'
config interface 'Guest'
option proto 'dhcp'
option device 'br-Guest'
config device
option name 'br-IOT'
option type 'bridge'
config device
option name 'br-Guest'
option type 'bridge'
Is there anything incorrect with my original config? If it’s going to continue to modify it on future updates is there a way I can modify the new config to make it equivalent to the original?
option type bridge inside a config interface is long deprecated (since v19 / v21 maybe). That may have confused the upgrade / firstboot scripts. It tried to convert to the newer "bridges declared separately" syntax but that is not correct either when DSA is involved.
The proper method (DSA) is to have one bridge i.e. br-lan and use the dot notation to attach Interfaces to bridge-vlans within that parent bridge. This seems to be the only way for hardware switching to a trunk Ethernet port (multiple VLANs tagged on it) to work properly.
Thanks for the description. I remember having a really hard time getting vlans initially setup on this device as trying to do it through Luci would result in an unresponsive system. Searching over the forums it appears this hardware doesn’t actually use DSA.
So I’m not sure which implementation strategy to attempt.
I would recommend that you backup your current configuration and then reset to defaults. This will clean up any bad configs and we can help you regenerate them based on your goals. We can also review the full configs so that we can ensure that they don't have issues (you might be able to restore some of the files so you don't need to re-do them).
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:
Remember to redact passwords, VPN keys, MAC addresses and any public IP addresses you may have:
I got a chance to continue investigating and you were right on. After comparing my original config against the DSA mini-tutorial they were very similar. Turns out all I needed to do was remove the option type ‘bridge’ from my interfaces (as you suggested) and now when I flash my network config is retained. Thanks again for your help!
I’m not sure why the device page and repeated forum comments say it’s not a DSA device. It seems to be responding to the DSA-style configuration.
Glad that things are working now. If you’d like us to review your configs to make sure there are any remaining issues, feel free to post them and we’ll take a look.