Configure Advanced Bridge Options (spanning tree, etc)

trogdorr

Cadet
Joined
Mar 27, 2022
Messages
3
I have bridge setup on TrueNAS SCALE with two 10gig NICs attached. I'm looking for a way to disable STP, but I don't see a way to do this.

In other Debian installs, I would run the command "brctl stp br0 off" in order to disable STP.

brctl command is unavailable on TrueNAS SCALE and I don't see an easy way to install it.

Any ideas?
 

csj

iXsystems
iXsystems
Joined
Oct 20, 2017
Messages
18
I added the ability to enable/disable STP on the bridge via the REST/websocket API and the webUI team has a ticket to expose this option on the front-end. They just haven't gotten around to it yet :smile:

Anyways, you can toggle this setting by running the following command via the cli.

"midclt call interface.update <your-bridge-name-here> '{"stp": false}'"
 

trogdorr

Cadet
Joined
Mar 27, 2022
Messages
3
I added the ability to enable/disable STP on the bridge via the REST/websocket API and the webUI team has a ticket to expose this option on the front-end. They just haven't gotten around to it yet :smile:

Anyways, you can toggle this setting by running the following command via the cli.

"midclt call interface.update <your-bridge-name-here> '{"stp": false}'"
Can I do this as a scheduled task at boot up?
 

trogdorr

Cadet
Joined
Mar 27, 2022
Messages
3
I tried your suggestion and got an error

# midclt call interface.update br0 '{"stp": false}'
[EINVAL] interface_update.stp: Field was not expected
 

Dr. Evil

Cadet
Joined
Dec 11, 2023
Messages
1
Just a note, this worked on Cobia, funny thing is this is a home environment/lab and the only device that had issues was my Xbox 360 that's been RGH'd, it would not get an IP on boot, but if you went into the 360 settings and "reset" the interface it would then get an IP. Disabling STP on the bridge/nic interface's and a reboot and problem solved. Wireshark showed STP negotiations when I powered on the 360 when nothing else did.
 

bcat

Explorer
Joined
Oct 20, 2022
Messages
84
I added the ability to enable/disable STP on the bridge via the REST/websocket API and the webUI team has a ticket to expose this option on the front-end. They just haven't gotten around to it yet :smile:

Anyways, you can toggle this setting by running the following command via the cli.

"midclt call interface.update <your-bridge-name-here> '{"stp": false}'"
Just curious, did this ever get added to the Web UI? I looked, but couldn't find it, though the CLI command worked for me.
 
Top