Friday, February 3, 2017

What's the MSTP Configuration of stp port port-priority?

Function Description

The multiple spanning tree protocol (MSTP) applies to the redundant network. MSTP is an improvement of STP and RSTP. MSTP prevents the proliferation and infinite cycling of the packets in the loop network. In addition, MSTP provides multiple redundant paths for VLAN data transmission to achieve the load-sharing purpose. The MA5680T/MA5603T/MA5608T supports MSTP, which is compatible with the STP and RSTP. It supports MSTP loop network that helps meet various networking requirements.

Function

The stp port port-priority command is used to set the priority of a port in the specified spanning tree instance. The priority is an important criterion deciding whether a port will be selected as a root port. In the process of calculating the spanning tree, among the ports with equal condition, the port with higher priority will be selected as the root port. After the priority of a port in the specified spanning tree instance is set, the device takes the set priorities as a criterion for selecting the root port.
The undo stp port port-priority command is used to restore the default priority of a port in the specified spanning tree instance. After the default priority of a port in the specified spanning tree instance is restored, the priority of the port is 128.
NOTE:
Modifying the priority of a port causes the recalculation of the spanning tree. You can set the priority of a port based on the actual requirement of the networking mode.

Format

stp port frameid/slotid/portid [ instance instance-id ] port-priority port-priority
undo stp port frameid/slotid/portid [ instance instance-id ] port-priority

Parameters

Parameter Description Value
frameid/slotid/portid Indicates the subrack ID, slot ID, and port ID. Enter a slash (/) between the subrack, slot, and port IDs. When you need to set the priority of the specified port, use this parameter. Please see Differences Between Shelves.
instance instance-id Indicates the spanning tree instance ID. The value 0 indicates the Common And Internal Spanning Tree (CIST) instance and other value indicate the Multiple Spanning Tree Instance (MSTI). Numeral type. Range: 0-16.
port-priority port-priority Indicates the port priority, in steps of 16. The smaller the set value is, the higher the port priority is. Numeral type. Range: 0-240.
Default: 128.

Modes

Global config mode

Level

Operator level

Usage Guidelines

  • If you do not configure parameter instance instance-id, the configuration takes effect only on the CIST instance. If parameter instance-id is configured to 0, it indicates the priority of the port in CIST.
  • If the priority of all Ethernet of the device is the same, the priority of an Ethernet port is decided by the index of the port.
  • Port role assignments in a specified spanning tree instance are determined by port priority. You can configure one port with different priorities in different MSTIs, so as to enable different VLAN traffic to be forwarded along different physical links and then to realize VLAN load sharing function.
  • When the port priority changes, MSTP recalculates the port role and transits the port state.

Example

To set the priority of port 0/19/0 in spanning tree instance 2 to 16, do as follows:
huawei(config)#stp port
{ frameid/slotid/portid<S><Length 5-18> }:0/19/0 
{ cost<K>|disable<K>|edged-port<K>|enable<K>|instance<K>|loop-protection<K>|mche
ck<K>|point-to-point<K>|port-priority<K>|root-protection<K>|transmit-limit<K> }:
instance
{ INTERGER<0-16> }:2
{ cost<K>|port-priority<K> }:port-priority
{ integer<U><0,240> }:16

  Command: 
          stp port 0/19/0 instance 2 port-priority 16 
To restore the default priority of port 0/19/0 in spanning tree instance 2, do as follows:
huawei(config)#undo stp port
{ frameid/slotid/portid<S><Length 5-18> }:0/19/0 
{ cost<K>|instance<K>|point-to-point<K>|port-priority<K>|transmit-limit<K> }:
instance
{ INTERGER<0-16> }:2
{ cost<K>|port-priority<K> }:port-priority

  Command:
          undo stp port 0/19/0 instance 2 port-priority

No comments:

Post a Comment