HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 2 - LAN Switching Co - Page 84
Configuration example, Configuring the port priority
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 84 highlights
Step Command Remarks 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface view. interface interface-type interface-number N/A • In STP/RSTP mode: 3. Configure the path cost of the stp cost cost ports. • In MSTP mode: stp [ instance instance-id ] cost cost Use one of the commands. By default, the system automatically calculates the path cost of each port. Configuration example # In MSTP mode, specify the device to calculate the default path costs of its ports by using IEEE 802.1d-1998, and set the path cost of GigabitEthernet 1/0/3 to 200 on MSTI 2. system-view [Sysname] stp pathcost-standard dot1d-1998 [Sysname] interface gigabitethernet 1/0/3 [Sysname-GigabitEthernet1/0/3] stp instance 2 cost 200 Configuring the port priority When the priority of a port changes, MSTP re-calculates the role of the port and initiates a state transition. 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. To configure the priority of a port: Step 1. Enter system view. Command system-view Remarks N/A 2. Enter Layer 2 Ethernet interface view or Layer 2 aggregate interface interface interface-type interface-number view. N/A 3. Configure the port priority. • In STP/RSTP mode: stp port priority priority Use one of the commands. • In MSTP mode: The default setting is stp [ instance instance-id ] port priority priority 128. 75