What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Enabling STP on RT-AX88U

ciprian.trofin

Occasional Visitor
To enable STP on router - do I have to do something else than go admin interface - Advanced Settings - LAN - Switch Control - Spanning-Tree Protocol - ENABLE ?

I'm asking because if I SSH the router and enter
Code:
brctl show
I get
Code:
bridge name     bridge id               STP enabled     interfaces
br0             8000.3c7c3fdc4558       no              eth1
                                                        eth2
                                                        eth3
                                                        eth4
                                                        eth5
                                                        eth6
                                                        eth7

Is STP enabled or not ?
 
@eibgrad: thank you.

I did as you instructed me and I think it works - Wireshark running on a laptop (wirelessly connected to network) shows STP packets when STP is enabled manually (via brctl); the STP packets stop showing when the STP is disabled with
Code:
brctl stp br0 off
I don't know if it solves my underlying problem (not discussed here), but hey! at least I can see STP packets flowing :)

However, it also looks like:
1. there are no STP packets flowing when STP is enabled only via Switch Control; bug, maybe?
2. rebooting the router disables STP; is there any way to enable it at boot time?
 
May very well be a bug. If manually enabling it works, I suppose you could add the command as an init-start script.
I have the same issue with an RT-BE88U. In this case though it gets reset to "no" at some point. I have the command in init-start - could I move this to services-start which gets called several times a day?
 
Last edited:
I have the same issue with an RT-BE88U. In this case though it gets reset to "no" at some point. I have the command in init-start - could I move this to services-start which gets called several times a day?
Answered this myself. Yes, adding to services-start rather than init-start has STP active constantly (well, as often as I'm checking it right now).
 
Thank you for sharing. I have enabled STP on the main router and all nodes via commands. If a network loop occurs or if the physical network speed drops from 1G to 100M, I will receive STP topology change messages. Therefore, receiving topology change messages is the first step in identifying network issues. Like this:

Main:
1737985141409.png


Nodes:
1737985214781.png

1737985177122.png


I'm also quite curious, like ciprian.trofin asked, why is the STP result shown by the brctl show command inconsistent with what is displayed on the web UI?
 
why is the STP result shown by the brctl show command inconsistent with what is displayed on the web UI?
Who knows. I learned early on not to ask myself questions like that for fear of just frustrating myself.
I wonder how long it's been like this, and how many routers are affected. So many peeps unaware - I only investigated when I got a new managed switch, where activating stp slowed routing to a crawl while the cpu was constantly topped out.
 
Who knows. I learned early on not to ask myself questions like that for fear of just frustrating myself.
I wonder how long it's been like this, and how many routers are affected. So many peeps unaware - I only investigated when I got a new managed switch, where activating stp slowed routing to a crawl while the cpu was constantly topped out.
AX88U, AC88U, AC86U, AC68U

the question may well be, what ones are not affected.
 
@RMerlin The merge with GPL 388_24353 on 19/12/2023 added this condition in lan.c which prevents STP being set on br0 for most HND models.


I guess the thinking was that the following hnd_set_hwstp(); would take care of this but that does not seem to be the case as I see no STP traffic on the LAN.
 
@RMerlin The merge with GPL 388_24353 on 19/12/2023 added this condition in lan.c which prevents STP being set on br0 for most HND models.


I guess the thinking was that the following hnd_set_hwstp(); would take care of this but that does not seem to be the case as I see no STP traffic on the LAN.
Since hnd_set_hwstp() is closed source, I have no idea what the logic is within that function. I have to trust that Asus did things this way for a reason.
 

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top