Configuring Path Costs Of Ports; Configuration Example; Configuring The Port Priority - HP 6125XLG Configuration Manual

Blade switch layer 2 lan switching
Table of Contents

Advertisement

Configuring path costs of ports

When the path cost of a port changes, the system re-calculates the role of the port and initiates a state
transition.
To configure the path cost of a port:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet or
aggregate interface view.
3.
Configure the path cost of the
ports.

Configuration example

# In MSTP mode, do the following:
Configure the device to calculate the default path costs of its ports by using IEEE 802.1d- 1 998.
Set the path cost of Ten-GigabitEthernet 1/1/7 to 200 on MSTI 2.
<Sysname> system-view
[Sysname] stp pathcost-standard dot1d-1998
Cost of every port will be reset and automatically re-calculated after you change the
current pathcost standard. Continue?[Y/N]:y
Cost of every port has been re-calculated.
[Sysname] interface ten-gigabitethernet 1/1/7
[Sysname-Ten-GigabitEthernet1/1/7] stp instance 2 cost 200
# In PVST mode, do the following:
Configure the device to calculate the default path costs of its ports by using IEEE 802.1d- 1 998.
Set the path cost of Ten-GigabitEthernet 1/1/7 to 2000 on VLAN 20 through VLAN 30.
<Sysname> system-view
[Sysname] stp pathcost-standard dot1d-1998
Cost of every port will be reset and automatically re-calculated after you change the
current pathcost standard. Continue?[Y/N]:y
Cost of every port has been re-calculated
[Sysname] interface ten-gigabitethernet 1/1/7
[Sysname-Ten-GigabitEthernet1/1/7] stp vlan 20 to 30 cost 2000

Configuring the port priority

The priority of a port is a factor that determines 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 is elected as the root port.
Command
system-view
interface interface-type interface-number
In STP/RSTP mode:
stp cost cost
In PVST mode:
stp vlan vlan-id-list cost cost
In MSTP mode:
stp [ instance instance-list ] cost cost
102
Remarks
N/A
N/A
By default, the system
automatically calculates the
path cost of each port.

Advertisement

Table of Contents
loading

Table of Contents