Configuring the Switch

3-102

3
CLI – This example shows the STA attributes for port 5.
Configuring Interface Settings
You can configure RSTP and MSTP attributes for specific interfaces, including port
priority, path cost, link type, and edge port. You may use a different priority or path
cost for ports of the same media type to indicate the preferred path, link type to
indicate a point-to-point connection or shared-media connection, and edge port to
indicate if the attached device can support fast forwarding.
Command Attributes
The following attributes are read-only and cannot be changed:
STA State – Displays current state of this port within the Spanning Tree.
(SeeDisplaying Interface Settings on page 3-99 for additional information.)
Discarding - Port receives STA configuration messages, but does not forward
packets.
Learning - Port has transmitted configuration messages for an interval set by
the Forward Delay parameter without receiving contradictory information. Port
address table is cleared, and the port begins learning addresses.
Forwarding - Port forwards packets, and continues learning addresses.
Trunk – Indicates if a port is a member of a trunk. (STAPort Configuration only)
The following interface attributes can be configured:
Spanning Tree – Enables/disables STA on this interface. (Default: Enabled).
Priority – Defines the priority used for this port in the Spanning Tree Protocol. If
the path cost for all ports on a switch are the same, the port with the highest priority
(i.e., lowest value) will be configured as an active link in the Spanning Tree. This
makes a port with higher priority less likely to be blocked if the Spanning Tree
Console#show spanning-tree ethernet 1/5 4-170
Eth 1/ 5 information
--------------------------------------------------------------
Admin status : enable
Role : disable
State : discarding
External path cost : 10000
Internal path cost : 10000
Priority : 128
Designated cost : 200000
Designated port : 128.5
Designated root : 61440.0.0000E9313131
Designated bridge : 61440.0.0000E9313131
Fast forwarding : enable
Forward transitions : 0
Admin edge port : enable
Oper edge port : enable
Admin Link type : auto
Oper Link type : point-to-point
Spanning Tree Status : enable
Console#