Configuring the path costs of ports, Configuration example – H3C Technologies H3C S12500 Series Switches User Manual

Page 94

Advertising
background image

81

Link speed

Port type

Path cost
IEEE

802.1d-1998

IEEE 802.1t

Private standard

Aggregate interface

containing 4 Selected
ports

5000 14

10 Gbps

Single Port

2

2000 2

Aggregate interface
containing 2 Selected
ports

1000 1

Aggregate interface
containing 3 Selected

ports

666 1

Aggregate interface
containing 4 Selected

ports

500 1

Configuring the path costs of ports

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter interface view or port
group view.

Enter Ethernet interface view or
Layer 2 aggregate interface view:

interface interface-type

interface-number

Enter port group view:

port-group manual

port-group-name

Use either command.

3.

Configure the path cost of the
ports.

In STP/RSTP mode:
stp cost cost

In PVST mode:

stp vlan vlan-list cost cost

In MSTP mode:

stp [ instance instance-id ] cost

cost

Use any command.
By default, the system
automatically calculates the

path cost of each port.

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 switch to calculate the default path costs of its ports by using IEEE

802.1d-1998, and set the path cost of GigabitEthernet 3/0/3 to 200 on MSTI 2.

<Sysname> system-view

Advertising
This manual is related to the following products: