beautypg.com

Configuration example, Configuring the port priority, Configuring the port link type – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 75

background image

66

Configuration example

# In MSTP mode, specify the device to calculate the default path costs of its ports by using IEEE

802.1d-1998.

system-view

[Sysname] stp pathcost-standard dot1d-1998

# Set the path cost of GigabitEthernet 1/0/3 to 200 on MSTI 2.

[Sysname] interface gigabitethernet 1/0/3

[Sysname-GigabitEthernet1/0/3] stp instance 2 cost 200

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...

Use the command...

Remarks

Enter system view

system-view

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

Required
Use either command.

Configure the port priority

stp [ instance instance-id ] port priority
priority

Required
128 for all ports by default.

NOTE:

If the port priority changes, the system re-calculates the port role and initiate a state transition.

A lower priority value means a higher priority. If all ports of a device are of the same priority, a smaller
port number is preferred. Modifying the priority of a port triggers a new spanning tree calculation.

Configuring the port link type

A point-to-point link directly connects two devices. If two root ports or designated ports are connected

over a point-to-point link, they can rapidly transition to the forwarding state after a proposal-agreement

handshake process.
Follow these steps to configure the link type of a port or a group of ports:

To do...

Use the command...

Remarks

Enter system view

system-view