If multiple routers on a customer site are connected the same PE, you should configure a version of the Spanning Tree Protocol on that PE. To configure a version of the Spanning Tree Protocol and VPLS simultaneously, include the rstp or mstp statement at the [edit instance-type layer2–control] hierarchy level:
- [edit]
- instance-type layer2-control;
- protocols {
-
- rstp {
- interface interface name;
- force-version stp; # To run STP instead of RSTP
- }
- }
If you only want STP (and not RSTP) to run on a device, you can configure STP by including the force-version stp statement at the [edit protocols rstp] hierarchy level:
- [edit]
- protocols {
-
- rstp {
- force-version stp;
- }
- }
For more information about the Spanning Tree Protocol (MSTP, RSTP or STP), see the MX-series Solutions Guide and the JUNOS Network Interfaces Configuration Guide.