set spantree adminpathcost

Use this command to set the administrative path cost on a port and one or more Spanning Trees.

Syntax

set spantree adminpathcost port-string cost [sid sid]

Parameters

port-string Specifies the port(s) on which to set an admin path cost. 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.
cost Specifies the port path cost. Va1id values are:
  • 0 - 65535 if legacy path cost is enabled.
  • 0 - 200000000 if legacy path cost is disabled.
sid sid (Optional) Sets the admin path cost for a specific Spanning Tree identifier. Valid values are 0 - 4094. If not specified, SID 0 will be assumed.

Defaults

If sid is not specified, admin path cost will be set for Spanning Tree 0.

Mode

All command modes.

Usage

By default, this value is set to 0, which forces the port to recalculate Spanning Tree path cost based on the speed of the port and whether or not legacy path cost is enabled. For details on using the set spantree legacypathcost command, refer to set spantree legacypathcost.

Example

This example shows how to set the admin path cost to 200 for ge.3.2 on SID 1:

System(rw)->set spantree adminpathcost ge.3.2 200 sid 1