set port spantree cost

Last Updated : Nov 06, 2012 |

Sets the spanning tree cost of a port. This value defines which port is allowed to forward traffic if two ports with different costs cause a loop.

Syntax

set port spantree cost [module/port] [value]

Parameters

Parameter

Description

Possible Values

Default Value

module

The module number

port

The port number

value

Number representing the cost. A lower value specifies precedence of a port to forward traffic.

1-65535

User level

read-write

Context

general

Example

To set the spanning tree cost of port 6/5 to 4096:

Gxxx-001(super)# set port spantree cost 6/5 4096
port 6/5 spantree cost is 4096