set spantree portpri

Use this command to set a port‘s Spanning Tree priority.

Syntax

set spantree portpri port-string priority [sid sid]

Parameters

port-string Specifies the port(s) for which to set Spanning Tree port priority. 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.
priority Specifies a number that represents the priority of a link in a Spanning Tree bridge. Valid values are from 0 to 240 (in increments of 16) with 0 indicating high priority.
sid sid (Optional) Sets port priority for a specific Spanning Tree identifier. Valid values are 0 - 4094. If not specified, SID 0 is assumed.

Defaults

If sid is not specified, port priority will be set for Spanning Tree 0.

Mode

All command modes.

Example

This example shows how to set the priority of ge.1.3 to 240 on SID 1.

System(rw)->set spantree portpri ge.1.3 240 sid 1: