EasyManuals Logo
Home>HP>Switch>A5830 Series

HP A5830 Series Command Reference

HP A5830 Series
249 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #125 background imageLoading...
Page #125 background image
118
The path cost setting of a port can affect the role selection of the port. When the path cost of a port is
changed, the system will re-calculate the role of the port and initiate a state transition.
Related commands: display stp and stp pathcost-standard.
Syntax
stp [ instance instance-id | vlan vlan-list ] cost cost
undo stp [ instance instance-id | vlan vlan-list ] cost
View
Ethernet interface view, port group view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
instance instance-id: Sets the path cost of the ports in a particular MSTI. The value of instance-id is in the
range of 0 to 31, where 0 represents the CIST.
vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where the
vlan-id parameter represents the VLAN ID, in the range of 1 to 4094, and &<1-10> indicates that you can
specify up to 10 VLAN IDs or VLAN ID ranges.
cost: Specifies the path cost of the port, with an effective range that depends on the path cost calculation
standard adopted:
With the IEEE 802.1d-1998 standard selected for path cost calculation, the cost parameter is in the
range of 1 to 65,535.
With the IEEE 802.1t standard selected for path cost calculation, the cost parameter is in the range
of 1 to 200,000,000.
With the private standard selected for path cost calculation, the cost parameter is in the range of 1
to 200,000.
Examples
# In MSTP mode, set the path cost of port GigabitEthernet 1/0/3 in MSTI 2 to 200.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp instance 2 cost 200
# In PVST mode, set the path cost of port GigabitEthernet 1/0/3 in VLAN 2 to 200.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] interface gigabitethernet 1/0/3
[Sysname-GigabitEthernet1/0/3] stp vlan 2 cost 200
stp edged-port
Description
Use the stp edged-port enable command to configure the ports as edge ports.
Use the stp edged-port disable command to configure the ports as non-edge ports.

Table of Contents

Other manuals for HP A5830 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP A5830 Series and is the answer not in the manual?

HP A5830 Series Specifications

General IconGeneral
BrandHP
ModelA5830 Series
CategorySwitch
LanguageEnglish

Related product manuals