Configuration Example; Configuring The Port Priority - HP 3600 v2 series Configuration Manual

Hide thumbs Also See for 3600 v2 series:
Table of Contents

Advertisement

To do...
Configure the path cost of the ports (in
STP/RSTP mode)
Configure the path cost of the ports (in
PVST mode)
Configure the path cost of the ports (in
MSTP mode)
NOTE:
When the path cost of a port changes, the system re-calculates the role of the port and initiates a state
transition.

Configuration example

# In MSTP mode, specify the device to calculate the default path costs of its ports by using IEEE
802.1d- 1 998, and set the path cost of Ethernet 1/0/3 to 200 on MSTI 2.
<Sysname> system-view
[Sysname] stp pathcost-standard dot1d-1998
[Sysname] interface ethernet 1/0/3
[Sysname-Ethernet1/0/3] stp instance 2 cost 200
# In PVST mode, specify the device to calculate the default path costs of its ports by using IEEE
802.1d- 1 998, and set the path cost of Ethernet 1/0/3 to 2000 on VLANs 20 through 30.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] stp pathcost-standard dot1d-1998
[Sysname] interface ethernet 1/0/3
[Sysname-Ethernet1/0/3] stp vlan 20 to 30 cost 2000

Configuring the port priority

The priority of a port is an important factor in determining whether the port can be elected as the root
port of a device. If all other conditions are the same, the port with the highest priority will be elected as
the root port.
On a spanning tree device, a port can have different priorities and play different roles in different
spanning trees, so that data of different VLANs can be propagated along different physical paths,
implementing per-VLAN load balancing. You can set port priority values based on the actual networking
requirements.
Follow these steps to configure the priority of a port or a group of ports:
To do...
Enter system view
Enter
interface
view or port
group view
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view
Enter port group view
Use the command...
stp cost cost
stp vlan vlan-list cost cost
stp [ instance instance-id ] cost cost
Use the command...
system-view
interface interface-type
interface-number
port-group manual port-group-name
85
Remarks
Required
Use any command.
By default, the system
automatically calculates the
path cost of each port.
Remarks
Required
Use either command.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents