Spanning Tree question...

Im not really up on spanning tree, so I need some opinions…

Consider the following scenario:

Switch 1
Port 28 - VLAN trunk to switch 2, 36 VLANs
Port 27 - VLAN trunk to RB450G ether2, Same 36 VLANs
Other ports assigned to 1 of the 36 VLANS

Switch 2
Port 28 - VLAN trunk to switch 1, Same 36 VLANs
Port 27 - VLAN trunk to RB450G ether3, Same 36 VLANs
Other ports assigned to 1 of the 36 VLANS

RB450G
ether1 - Net
ether2 - 36 VLANs trunked to switch1
ether3 - same 36 VLANs trunked to switch2
bridge0 - 35 of the 36 vlans bridged (same horizon so they cant talk).
bridge1 - 1 vlan added to bridge (Management VLAN for switches)

The goal is to continue operating if port 28,27 on either switch goes out, or ether2/ether3 goes out on the router.

How would I configure this with RSTP or STP? Switches support either.

What types of switches?

I could help you do this if you’re using Cisco Catalyst switches.

Mid-graded Dlink managed switches. DES-3028. From looking at it, I can turn STP/RSTP on/off globally or at the port level and assign ports to be edge on/off/auto.

When I tried simply turning RSTP on globally on the switches and on the bridge ports on the 450 and hooked it up, it just disconnects everything. Probably a bridging loop. I dont know if I need the ability in the switches to turn RSTP on/off at the VLAN level, which I cant seem to do on these switches.

If I cant do it this way, Ill just do a bonding active-failover on the 450 and that should do it for me. Just figured RSTP would be a better long-term solution.