
Configuring Bridging Services
6-20
117351-B Rev. 00
Assigning a Priority to an Interface
The interface priority, together with the bridge ID (see “Determining Which
Bridge is the Root Bridge” on page 6-18), determine whether a port becomes the
designated port when the spanning tree algorithm converges. The lower a port’s
priority value, the more likely it is that the port will be the designated port.
The default value for the interface priority is 128. To set the interface priority,
navigate to the interface span prompt and enter:
priority
<value>
value
is any number from 1 to 255.
For example, the following command sets the interface priority to 200:
span/ethernet/2/1#
priority 200
Setting the Path Cost for a Spanning Tree Interface
When a port is the root port, the path cost is the contribution of the path through
this port to the total cost of the path to the root bridge. When an interface is not the
root port, the spanning tree adds the value configured as the path cost to the
designated cost for the root port. For more information about how the spanning
tree configures root ports, refer to “Spanning Tree Algorithm” on page 1-8.
To determine the path cost, use this formula:
Interface path cost = 1000/attached LAN speed in Mb/s
The default for the path cost is 1. To set the path cost, navigate to the interface
span prompt and enter:
path-cost
<value>
value
is any number from 1 to 65535.
For example, if the attached LAN is Ethernet, you would enter 100 for the path
cost (1000/10 = 100) with the following command:
span/ethernet/2/1#
path-cost 100
Comentarios a estos manuales