On an MX-series router you can enable the use of a spanning-tree protocol under a user-created routing instance of type virtual-switch or layer2-control. Configure the version of spanning-tree protocol to be used as RSTP, MSTP, or VSTP.
- (rstp | mstp | vstp);
You can configure this statement at the following hierarchy levels: