I'm trying to setup what I think is a simple architecture but I'm hitting some walls with the vlan setup.
So, first, what I'm trying to achieve is this:
I've a cable modem that I've to put in bridge mode, this is in a isolated room of my house, with some other peripherals next to it. (ROOM A)
pretty far away, I've to put my wrt1900ac, with a big bunch of other computers and peripheral. (ROOM B)
There is a single cable going through ROOM A and B (and no easy way to have another one)
wrt1900ac -> a port (Wan ? Lan ?) Tagged 20 and 1
all other ports untagged 1 (for not managed switches and all other computers)
I managed to setup the switch (I think)
My problem is, in luci, when trying to setup something like this (or any variation without the wan in the switch and moving the trunk on one of the lan port), I'm not able anymore to communicate with router (even with wifi, that I did not even touched), and the configuration rolls back (thanks)
My guess is the following:
By activating VLAN filtering, you switch br-lan from untagged to br-lan.1. But unless you configure br-lan.1 in the interface section before "saving & applying" the new VLAN set-up in the device section, you loose br-lan when your change to the device section is commited, LuCI detects that and gets you out of that mess by reverting your change.
So here is how it might work:
navigate to the Network menu
select the Interfaces tab
click the edit button for the LAN interface (which should say br-lan in the small print)
under Device enter custom br-lan.1 & click save
this brings you back to the interfaces tab, where you click the greenish save button BUT NOT the blue "Save & Apply" button yet.
instead switch to the Devices tab and click the blue Configure... button for br-lan
go the Bridge VLAN Filtering and make your desired changes (making sure that all the untagged stuff sits on VLAN ID1)
Thanks to your great (and dumb-proof) explanations, I was able to set it up. I took me a long time because, I don't know why, I had to setup vlan based on mac in the switch.
So, now, my conf looks like this:
wan and lan4 can be used the same way, I made both of them working to make some experimentation because of the lack of performance.
What I mean with that is that now, I am "only" able to sustain 250Mbits where I should have 400Mbits (and maybe soon more)
I see the sirq going up to 50% while doing speedtest (in download, upload is limited to 20Mbits, and I can get it without a problem (sirq: 30%).
Is there anything I can do to get back the usual speed or it can not work this way ?
PS: I put the wan in the bridge because it was the only device I was able to use (the bridge). Trying to create the vlan devices on the wan, and the attributing the wan.10 as wan interface resulted into Unknown error (DEVICE_CLAIM_FAILED) (and I really don't have a clue if that could improve the speed)
Your description would lead one to believe that the setup is stepping out to the CPU, rather than staying in the switch fabric.
Although your numbers would be below where it should matter, the switch to DSA currently only supports one CPU-port. If you are building an image, you could see if the relevant bits of PR4036 to get multi-port buy you any extra throughput. It appears to be working fine on wrtpac targets.