set spantree restrictedrole

Use this command to allow or disallow the root role on the specified port(s) on the device.

Syntax

set spantree restrictedrole port-string {true | false}

Parameters

port-string Specifies the port(s) on which to allow or not allow the root role. For a detailed description of possible port-string values, refer to Port String Syntax Used in the CLI in the S-, K-, and 7100 Series Configuration Guide.
true | false Specifies whether the root role is allowed or not allowed on the specified port(s). Restricted role is set to false by default.
  • true – Root role is not allowed on the specified port(s)
  • false – Root role is allowed on the specified port(s).

Defaults

None.

Mode

All command modes.

Usage

When Restricted Role is set to true, the port will not be selected as the root port for the common instance Spanning Tree or any multiple Spanning Tree instance, even if it has the best Spanning Tree priority. The Restricted Role port set to true is selected as an alternate port after the root port has been selected. If set to true, Restricted Role can cause lack of Spanning Tree connectivity. Setting Restricted Role to true prevents bridges, external to a core region of the network, from influencing the Spanning Tree active topology. You may wish to use Restricted Role when bridges are not under your full control.

Restricted role is set to false (root role is allowed) by default.

Example

This example shows how to not allow root role on ports ge.2.1-3:

System(rw)->set spantree restrictedrole ge.2.1-3 true