My current setup is:
Bridge Device: br-lan (eth0, eth1, eth2, eth3)
Interface 1: lan (br-lan) 10.0.0.1/16 (DHCP running)
Interface 2: dmz (br-lan.10) 10.10.0.1/16 (DHCP running)
Interface 3: wlan1 (br-lan.20) 10.20.0.1/16 (DHCP running)
Interface 4: wlan2 (br-lan.30) 10.30.0.1/16 (DHCP running)
The switch is managed and configured in a way that the subnets can only connect to each other if they pass the openwrt box.
Currently I have only eth0 connected. (Everything else would lead to collisions).
Since there is a lot of traffic between the subnets I wanted to test if throughput can be optimized if i use ling aggregation.
How do I have to change my configuration so that everything is working like now but br-lan is replaced by a link aggregation.
It got me really confused that link aggregation is an interface not a device like vlan. If it was a device it would be easy. But with la as an interface I ran in all kind of problems like get DHCP running or put a VLAN on top of the interface.
Link aggregation is used when there are several links between two nodes (for example, a server with two network cards both connected to the same switch); I do not see how could you use it in this situation.
Anyway, do you want to control the traffic between the subnets?
Ports 1-4 of the OpenWrt box are connected to Ports 1-4 of the Managed Switch.
At least thats what it should be. But if I connect more than one port I got tons of network collisions.
Which is clear to me since the br-lan device will send ever package over every linked port. Since they go to the same router the packages collide.
Thats what I am trying to achive. My OpenWrt Box does have 5 eth Ports with 1Gb/s one port is the WAN port the others are linked in the br-lan.
My Switch and the rest of the network (except WLAN) is running at 10Gb/s
Ok, I see it now. I thought you had performance issues with the router's CPU, not the connection to the switch. You can use link aggregation, or (just as an idea) you could use each ethernet port for one subnetwork.
For the link aggregation, you have to configure it first on the switch, then separate the four ethernet ports out of the LAN bridge, regroup them again in a bond, then configure your LAN on top of that.
As @_bernd commented, let's start with you current configuration.
I did use Port isolation too but they are pretty strait forward and can be ignored.
Maybe this is usefull to someone else too.
As said the only thing I was unable to achive is to give the clients in the subnet reserved for wireguard clients and VLAN ID of 50.
Just a small update.
I noticed today that after a while my Switch did not show the LAG Partner anymore. I then realized that the bounding interface is untagged traffic. The solution is simple just change the settings for WAN1, WAN2, WAN3, WAN4 in the VLAN Tab from strict to enabled and only tagged to any, it will show up again almost immediately.
If something else is not working it is 99% related to your personal firewall settings. But they are out of scope fror this post.