But as soon as I try to switch the "lan" interface, without changing any IP-settings, to the switch.1 device, I loose connectivity. Even over direct connection to a port of the Cudy, bypassing my switches and also over wifi.
After 90 seconds the configuration is restored.
this seems to happen as soon as I map any bridge with vlans to the lan interface.
Is my cudy broken? It runs on Kernel Version 5.15.167
Your device uses DSA, so the sequencing is critical if you're using LuCI. I personally find it easier to do this by editing the config file directly.
That said, the important part is to set the bridge-VLANs as you have done, then edit your lan interface to use switch.1. Only after that change can you actually apply the settings.
If you still cannot get it to work, post your network config file and I'll show you how to edit accordingly:
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, MAC addresses and any public IP addresses you may have:
Thank you for your incredibly fast help.
When editing via ssh I fear loosing access because I guess the configuration wouldn't be reverted after 90 seconds…
The part with the sequencing I did not understand. I loose conectivity after editing lan to use switch.1 and applying that.
Ah... I see the problem. You have three bridges defined, both with the same ports. The ports can only be present in a single bridge. You also have a few other issues. We'll fix them.
Let's keep the standard br-lan. So... delete this:
Then edit the VLANs so that they use device br-lan:
config bridge-vlan
option device 'br-lan'
option vlan '1'
list ports 'lan1:u*'
list ports 'lan2:u*'
list ports 'lan3:u*'
list ports 'lan4:u*'
config bridge-vlan
option device 'br-lan'
option vlan '20'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
config bridge-vlan
option device 'br-lan'
option vlan '30'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
config bridge-vlan
option device 'br-lan'
option vlan '40'
list ports 'lan1:t'
list ports 'lan2:t'
list ports 'lan3:t'
list ports 'lan4:t'
And delete this:
Now, edit the lan interface to use device br-lan.1:
That did indeed work.
I'm unsure why, because it certainly looks like one of the dozen tries of today.
Maybe because editing the file directly and not using luci.
Ah it might be because the tutorial I used wanted me to create a new bridge device from the start, so I had always at least two bridges on all lan ports.
Anyway. Thank you very much.
I will try to configure the rest from here on. Thank you.