This is my home setup.
I am trying for the last 2 weeks to make it work because from time to time it was going down. Sometimes minutes, sometimes it worked an hour oder two.
Then I could't ping some/all of the 4 Routers. Sometimes I counldn't ping client 1 and 2. Sometimes it was Client 3 or even the main router.
I tried to figure out what's wrong and I think I found out what's the problem. At least the network is working flawlessly since yesterday.
The spanning tree protocoll was set wrong.
In the wiki there is the suggestion to enable it on the WDS Client.
So I did enabled STP on all clients. But that don't work.
Then I tried to enable it on the main router + Client1+2+3. This also did not worked.
STP off on all -> also not working.
I searched for an solution and I found this:
Linksys did just enable STP on the WDS AP.
So i gave it a try - and it works!
So STP is only active on the main router now. client1+2+3 have it disabled.
Can somebody explain me why I have to set it up like that?
And my last question: Where the hell did it create that loop?
I can't see the a loop. The clients are locked to the BSSID so they connect everytime like shown above.
Without any logs it can be hard to understand how it happened, but in principal the main router saw its own mac coming back form a client. So chances are one of the clients connected somewhere it wasn't supposed to.
I guess the logs will be visible in logread, otherwise check dmesg. Try to grep -i stp to narrow it down.
You can have STP running on all nodes. However you need to configure it, and if I am not mistaken, you only enabled it, so it was running on all 4 nodes with the defaults, so the root bridge was random all the time. Is my understanding correct?
Enable STP everywhere and set the priority on the main router to 4096 and to i.e. 8192 everywhere else. Do not fiddle with the default timers for now. Give the network 20 sec up to 60 sec to "stabilize"...
Not random. Iirc the lowest mac address wins. But yeah quiet often it just don't feel predictable.
Anyhow it's better to just set the priorities based on the actual design and hierarchy of the network.
I would only assign the lowest value once, i.e. to the "core switch". Every switch behind that should get a higher value. You want to have the root bridge as close the the edge of the network as possible.
I hope nobody minds, If I use this topic do seek for opinion.
I have the following WDS bridge:
x86->ethernet->RT3200-1->WDS->another RT3200-2 ( works as client and master on 5Ghz)
Everything works ok for nearly 2 months, but I am looking around the forum to make my config better or to learn something.
So, as I have similar setup, however with STP enabled only on RT3200-2 with default values, I have experimented by enabling STP on RT3200-1 too and changed the priorities on RT3200-1 to 4096 and on RT3200-2 to 8192.
This action however triggered the RX transmission ( can not remember on which RT) to drop from around 1200 Mbit/s to 24 and the other RT was not accesable.
Am I doing something wrong - for example leaving STP off on the x86 ( I intentialy left if off as the connection is via cable)?
I am aware that I should not touch a config which is working, but something inside of me always triggers me to a decisions which I later regred:)
Thanks
Kr
K
PS: x86 is without Wifi and both Rt3200 are setup as dumb AP.
if everything is connected in a star-topology or even "extended" star (like with additional leafs) then there is not even the/a need to enable stp at all. stp comes into play when multiple layer-2 connections between switches are setup[1]. or you want to avoid that some smarthead in your household connects an ethernet cable in two ports of the same switch...
[1] like, router --> ap1/ap2/ap3 and between ap1 and ap2 there is a cable, and between ap2 and ap3; and from ap3 to ap4; something like this. but if you just have a bunch of ap connected anyhow to a router/core-switch but between the ap are no interconnects, then stp is technically not needed