Which command enables rstp on a switch
The smaller the priority value of a switching device is, the higher the possibility that the switching device is selected as the root bridge. If a switching device has been configured as the primary or secondary root bridge, before changing the priority of the switching device, run the undo stp [ instance instance-id ] root command to disable the root bridge or secondary root bridge function.
If the stp root primary command is run to set a switching device as the primary root bridge, the priority value of the switching device is 0. If the stp root secondary command is run to set a switching device as the secondary root bridge, the priority value of the switching device is Set the priority of the switching device in spanning tree instance 1 to when MSTP is running. The stp process command has the following functions:. The undo stp process command deletes a specified MSTP process.
On a Layer 2 network where MSTP is run, if devices belong to multiple access rings that are isolated from each other and these access rings do not need intercommunication, MSTP cannot be used to calculate one spanning tree for all these access rings.
Instead, MSTP must be enabled on each access ring to calculate the spanning trees independently. Each switching device on these access rings can be configured with multiple MSTP processes.
MSTP configurations in the system view and interface view both belong to this process. Therefore, this command does not take effect when the spanning tree protocol is VBST. By default, no protection mode is configured for PVID inconsistency between directly connected ports.
That is, the switch only prints log information when the PVIDs of directly connected ports are different. If they are different, the processing method varies as follows:. When the PVID of the interface is inconsistent and the PVID needs to be blocked, the stp pvid-consistency protection mode command must be configured on the two directly connected ports and their link types must be both trunk.
Set the protection mode for PVID inconsistency between directly connected ports to block. The stp region-configuration command displays the MST region view.
The undo stp region-configuration command restores the default configuration of the MST region. MSTP divides a switching network into multiple regions, each of which has multiple spanning trees and these spanning trees are independent of each other.
If the preceding parameters need to be set for the current switching device or the current process , run the stp region-configuration command to enter the MST region view first. After entering the MST region view and setting the preceding parameters, run the active region-configuration command to activate the configurations of the MST region. The stp root command configures the switch as a root bridge or secondary root bridge of a spanning tree.
The undo stp root command cancels the configuration. By default, the switch does not function as the root bridge or secondary root bridge of a spanning tree. In the stp root secondary command, you can specify a maximum of 10 VLAN ranges. On the spanning tree protocol network, each spanning tree has only one root bridge, which is responsible for sending BPDUs. Owning to the importance of the root bridge, the switch with high performance and network hierarchy is generally chosen as a root bridge.
The priority of such a device, however, may be not that high. Therefore, setting a high priority for the switch is necessary so that the switch can function as a root bridge. To ensure nonstop traffic transmission, run the stp root command to configure the switch as the secondary root bridge. When the root bridge is faulty or is powered off, the secondary root bridge becomes the root bridge during spanning tree calculation.
After the stp root primary command is run to set the switch to be the primary root bridge, the priority value of the switch is 0 in the spanning tree and the priority cannot be modified.
The secondary root bridge specified using the stp root secondary command has the priority value of and the priority cannot be modified. A switch in a spanning tree cannot function both as the primary root bridge and as the secondary root bridge. If multiple secondary root bridges are set in a spanning tree, the one with the smallest MAC address functions as the secondary root bridge of the spanning tree.
The stp root-protection command enables root protection at the current port. The undo stp root-protection command restores the default setting of root protection. Owning to incorrect configurations or malicious attacks on the network, a root bridge may receive BPDUs with a higher priority. Consequently, the root bridge is no longer able to serve as the root bridge, and the network topology is changed, triggering a spanning tree recalculation.
This spanning tree recalculation may transfer traffic from high-speed links to low-speed links, causing traffic congestion. If a designated port is enabled with the root protection function, the port role cannot be changed.
Once a designated port that is enabled with root protection receives BPDUs with a higher priority, the port enters the Discarding state and does not forward packets. If the port does not receive any BPDUs with a higher priority before a period generally two Forward Delay periods expires, the port automatically enters the Forwarding state.
You can run the stp timer forward-delay command to set the Forward Delay period. The root protection function takes effect only on a designated port. In addition, configuring the root protection function on a port that functions as the designated port in all instances is recommended. Generally, root protection is configured on the interfaces of the root bridge.
If the stp root-protection command is run on other types of ports, the root protection function does not take effect. This prevents user services from being interrupted.
The undo stp tc-protection interval command restores the default value. System view or MST process region view. Frequent entry deletion may cause high CPU usage. You can specify the maximum number of TC packets that the device processes can handle in the specified time by running the stp tc-protection threshold command. The stp tc-protection threshold command sets the number of times that a device handles received TC BPDUs and updates forwarding entries within a unit time. The undo stp tc-protection threshold command restores the default setting.
The value of the unit time is consistent with the Hello time and can be set using the stp timer hello command. The stp timer forward-delay command sets the value of the Forward Delay of a switching device. The undo stp timer forward-delay command restores the default value of the Forward Delay. By default, the value of the Forward Delay of a switching device is centiseconds 15 seconds.
In the stp timer forward-delay command, you can specify a maximum of 10 VLAN ranges. On a network running a spanning tree algorithm, if the network topology is changed, it takes time to advertise new BPDU configuration messages on the network. During this period, interfaces to be blocked may not be blocked in time and interface ever blocked may not be blocked. As a result, a temporary loop may be formed. To prevent this problem, you can use the Forward Delay timer to set a delay time.
During the delay time, all interfaces are blocked temporarily. The stp timer forward-delay command is used to set the Forward Delay timer.
The value of the Forward Delay timer set on the root bridge is advertised to other devices of the same spanning tree using BPDUs. Then it becomes the value of the Forward Delay timer of all devices in the spanning tree. Running the stp bridge-diameter command to set the network diameter is recommended.
After the stp bridge-diameter command is run, the switching device sets optimum values for the three parameters, Hello Time, Forward Delay, and Max Age.
The stp timer hello command sets the interval of the switching device to send BPDUs, that is, the value of the Hello Time. The undo stp timer hello command restores the default setting. In the stp timer hello command, you can specify a maximum of 10 VLAN ranges. On a network where a spanning tree protocol is enabled, a switching device periodically sends BPDUs to other devices in the same spanning tree at the interval of the Hello Time.
Sending BPDUs periodically ensures that the spanning tree is stable. In a spanning tree, the device closer to the root bridge is the upstream device of another connected device. The value of the Hello Time set on the root bridge is advertised to other devices of the same spanning tree using BPDUs.
Then it becomes the value of the Hello Time of all devices in the spanning tree. The stp timer max-age command sets the Max Age of a switching device, that is, the BPDU aging time on a port of the switching device. The undo stp timer max-age command restores the default setting. In the stp timer max-age command, you can specify a maximum of 10 VLAN ranges.
Then it becomes the MaxAge value of all devices in the spanning tree. The stp timer-factor command sets the timer factor of the timeout period of a switching device to the Hello Time.
The undo stp timer-factor command restores the default setting. On a network where a spanning tree protocol is enabled, if a switching device does not receive BPDUs from an upstream device within the timeout period, it considers that the upstream device becomes faulty, and will recalculate the spanning tree.
If the parameter factor is set smaller, the timeout period of the switching device to re-calculate the spanning tree is shorter. In this case, there is a higher probability that the switching device incorrectly considers the upstream device as being faulty.
If the parameter factor is set larger, the timeout period of the switching device to re-calculate the spanning tree is longer. In this case, there is a higher probability that the traffic becomes interrupted because the upstream device has become faulty.
The stp transmit-limit command sets the maximum number of BPDUs that the current port can send in a specified period. The undo stp transmit-limit command restores the default maximum BPDUs.
On a network where a spanning tree protocol is enabled, a switching device periodically sends BPDUs to other devices in the same spanning tree with the interval of the Hello Time.
If the number of sent BPDUs are great in a specified period, excessive system and bandwidth resources will be consumed. To prevent this problem from occurring, run the stp transmit-limit command to set the maximum number of BPDUs that can be sent by an interface in a specified period.
In this manner, the BPDU sending speed is controlled, preventing excessive use of system and bandwidth resources by MSTP when the network topology flaps. After the stp transmit-limit command is configured, the maximum number of BPDUs sent in a specified period by the interface is determined by the set value. The stp transmit-limit command configures the maximum number of Bridge Protocol Data Units BPDUs that each interface of the local device can send per second.
The undo stp transmit-limit command restores the maximum number of BPDUs, which can be sent by each interface of the local device per second, to the default value. If a number of BPDUs are sent every second, system and bandwidth resources will be greatly consumed. You can configure the Hello time by using the stp timer hello command.
To prevent excessive usage of system and bandwidth resources, you can run the stp transmit-limit command to configure the maximum number of BPDUs that each interface of the local device can send per second. After the stp transmit-limit command is executed, packet-number controls the maximum number of BPDUs that each interface can send per second.
You can also configure the maximum number of BPDUs that a specific interface can send per second by running the stp transmit-limit interface view command in the view of this interface.
The stp transmit-limit interface view command configuration in the interface view takes precedence over the stp transmit-limit command configuration in the system view. That is, if the stp transmit-limit interface view command is configured in the view of an interface, the stp transmit-limit command configuration in the system view does not take effect for this interface.
In the stp enable command, you can specify a maximum of 10 VLAN ranges. On a complex Layer 2 network, to prevent or eliminate loops and allow traffic in different VLANs to be forwarded along spanning trees to implement load balancing, deploy VBST on the switch. Spanning tree calculation occupies system resources. Whether the interface is in forwarding state depends on the calculation result.
This function ensures nonstop services. When the stp vpls-subinterface enable command is used and the main interface is in discarding state, the sub-interface bound to the VSI enters the flowdown state.
This command does not take effect when VBST is running. The vlan-mapping modulo command enables VLAN-to-instance mapping assignment based on a default algorithm. The undo vlan-mapping modulo command restores the default mapping.
Format active region-configuration. Parameters None. Views MST region view. Default Level 2: Configuration level. Precautions Before running the active region-configuration command, you are recommended to run the check region-configuration command to check whether the region configurations that have not taken effect are correct.
Related Topics check region-configuration. Format check region-configuration. Usage Guidelines Usage Scenario MSTP divides a switching network into multiple regions, each of which has multiple spanning trees that are independent of each other. Example Display the configuration of an MST region. Revision level Revision level of the MST region.
Related Topics active region-configuration. Format display ethernet-loop-protection ignored-vlan. Views All views. Default Level 1: Monitoring level. Usage Guidelines Usage Scenario After you configure an ignored VLAN using the ethernet-loop-protection ignored-vlan command, the display ethernet-loop-protection ignored-vlan command can be used to display information about the configured ignored VLAN.
Prerequisites An ignored VLAN has been configured using the ethernet-loop-protection ignored-vlan command. Related Topics ethernet-loop-protection ignored-vlan. Format display snmp-agent trap feature-name mstp all. Trap number Number of trap messages. Default switch status Status of the default trap function: on: indicates that the trap function is enabled. Current switch status Status of the current trap function: on: indicates that the trap function is enabled.
Related Topics snmp-agent trap enable feature-name mstp. Format display snmp-agent trap feature-name vbst all. Related Topics snmp-agent trap enable feature-name vbst. The value is a decimal integer ranging from 1 to The value is an integer ranging from 0 to Value 0 refers to CIST. NOTE: instance-id ranges from 0 to If a non-0 instance is mapped to a VLAN to which no interface is added, the following information is displayed when you query the status and statistics of the spanning tree instance: Info: No instance information is available.
Example When the stp enable command does not run, the status and statistics of STP are displayed. Disabled Enabled. Interface status. Displays spanning tree configurations when VBST is running.
FwDly: indicates the delay for port status transition. The value 0. Root Type Root bridge type. Port Role Role of the port. Port Priority Priority of the port. Port Cost Legacy Port path cost calculated using Huawei proprietary algorithm: Config: indicates the manually configured path cost. Active: indicates the actual path cost.
Port Edged Edge port specified by the administrator: enabled: indicates that the edge port is enabled. Config indicates the value configured by the stp edged-port command; Active indicates the actual value. The previous 16 bits are the priority of the switch in CIST.
The latter 48 bits is the MAC address of the switch. Values that is configured manually in the bridge protocol information: Hello: the period of sending BPDUs. FwDly: deferred time of the change of the port status.
MaxHop: the maximum hops in the MST region. The status of the port protocol is as follows: Enable : STP is enabled on the port. Path cost of the port. It is calculated by dot1t algorithm. Edged port that is specified by the administrator: enabled disabled Config indicates that the value is configured by using the stp edged-port command.
Active indicates the actual value. The protection type is as follows: root protection loop protection None LoopBack: loopback detection. The configuration digest snooping function. The command output is displayed only after the stp config-digest-snoop command is configured and the configuration digest snooping function is enabled on the port.
Format of the packets that the interface receives and sends. The formats are as follows: auto legacy dot1s The default value is auto. Config indicates that the packet format is configured by running the stp compliance command.
Active indicates the actual packet format. Protocol format of the BPDUs received and sent through a port: pvst stp. RemHop: the maximum hops in the MST region. Related Topics reset stp statistics. The value is an integer in the range 1 to The value is an integer in the range 0 to The value 0 indicates a common and internal spanning tree CIST instance.
Usage Guidelines Usage Scenario If a device has many interfaces and the display stp command output displays large amounts of information, it is difficult to view information about abnormal interfaces running STP.
An interface running STP becomes abnormal due to one of the following: Root-Protected : indicates that the root protection takes effect. Loop-Protected : indicates that the loop protection takes effect. Loop-Detected : indicates that the loop detection takes effect. Related Topics display stp. Usage Guidelines Usage Scenario The display stp active command displays information about spanning trees of Up interfaces only.
Enabled : BPDU protection is enabled. Disabled : STP is disabled on the interface. Path cost calculated by dot1t of an interface: Config : configured path cost Active : path cost that is being used. Whether the edge interface specified by the administrator is enabled: enabled : The edge interface is enabled. Config indicates the value that is specified in the stp edged-port command, and Active indicates the value in use. Protection type, which can be: root-protection : Protection takes effect only on the specified interface.
Format of BPDUs sent and received on the interface, which can be: auto legacy dot1s The default value is auto. Config indicates the packet format that is specified in the stp compliance command, and Active indicates the packet format in use. ID of the bridge where the master interface is located.
The first 16 bits represent the switch's priority in the CIST. The last 48 bits represent the switch's MAC address. Usage Guidelines Usage Scenario When a device provides many interfaces, running the display stp command displays a large amount of information, and it is difficult to find information about the spanning trees of the root and local bridges. To specify the parameter, run the stp timer max-age command Forward Delay Delay in interface status transition.
Format display stp error packet. Example Display the statistics about error packets received by MSTP and the contents of recently received packets. Format display stp [ process process-id ] global. Usage Guidelines Usage Scenario When a device provides many interfaces, the display stp command output contains a large amount of information, and it is difficult to find the desired information quickly and view global information at a glance.
Disabled : STP is disabled. Disabled : The function is disabled. Whether the function of configuring all ports of the switch as edge ports is enabled: Enabled : The function is enabled. Format display stp [ process process-id ] region-configuration [ digest ]. Region name Name of the MST region. Digest Brief information about the MST region. Related Topics instance. Format STP, RSTP, or MSTP: display stp [ process process-id ] [ instance instance-id ] [ interface interface-type interface-number slot slot-id ] tc-bpdu statistics VBST: display stp [ vlan vlan-id ] [ interface interface-type interface-number slot slot-id ] tc-bpdu statistics.
The value is an integer that ranges from 0 to The value 0 indicates a CIST instance. Prerequisites In the case of a non-zero process, the stp process process-id command must be used to create a process. Table Description of the display stp topology-change command output Item Description Number of topology changes Total number of topology changes since initialization.
Format display stp vlan vlan-id. Path cost of the port, which is calculated using Huawei proprietary algorithm: config: indicates the path cost that is manually configured. Status of the edge port that is specified by the administrator: enabled: The edge port is enabled. Config indicates the value configured using the stp edged-port command, and Active indicates the actual value. Protection type of the port: root-protection: takes effect only on the designated port.
Format display vbst bpdu-statistics [ vlan vlan-id ] [ interface interface-type interface-number slot slot-id ]. The value is an integer that ranges from 1 to The value is an integer and must be the slot ID of a running board. Port Port name. By default, no ignored VLAN is configured for a device. Views System view.
Precautions If the ethernet-loop-protection ignored-vlan command is run more than once, all configurations take effect. Please make sure there are no bridging loops in the VLAN s. Related Topics display ethernet-loop-protection ignored-vlan. Parameters Parameter Description Value instance-id Specifies the number of a spanning tree instance.
Related Topics display stp region-configuration. Format max bandwidth-affected-linknumber link-number undo max bandwidth-affected-linknumber. Parameters Parameter Description Value link-number Specifies the upper threshold for the number of interfaces that determine the bandwidth of an Eth-Trunk. Views Eth-Trunk interface view. Usage Guidelines The upper threshold for the number of interfaces that determine the bandwidth of an Eth-Trunk is used for STP calculation. Example Set the upper threshold to 3.
Related Topics display eth-trunk. Format region-name name undo region-name. Parameters Parameter Description Value name Specifies the region name of the switching device. The value is a case-sensitive string of 1 to 32 characters without spaces.
NOTE: When double quotation marks are used around the string, spaces are allowed in the string. Example Set the MST region name of the switch to "huawei". Format reset stp error packet statistics. Default Level 3: Management level.
Usage Guidelines Applicable Scenario You can use the reset stp error packet statistics command to clear the history statistics when you need to observe the statistics of error STP BPDUs in a period from the current time. Format reset stp [ interface interface-type interface-number ] statistics. Parameters Parameter Description Value interface interface-type interface-number Specifies an interface type and the number of the interface.
Views User view. Usage Guidelines Sometimes, traffic statistics within a certain period are required. When you run the reset stp statistics command: If you specify an interface, you can clear the statistics of a spanning tree on the interface. Format reset vbst bpdu-statistics [ interface interface-type interface-number slot slot-id ]. The value is an integer and must be an existing slot on the device. By default, the revision level of MST region is 0.
Format revision-level level undo revision-level. By default, the trap function is disabled for the MSTP module. Example Enables the device to send trap when the current device is no longer the root bridge. Related Topics display snmp-agent trap feature-name mstp all. By default, the trap function is disabled for the VBST module.
Related Topics display snmp-agent trap feature-name vbst all. Format stp agreement-legacy undo stp agreement-legacy. Format stp binding process process-id undo stp binding process process-id. Related Topics stp process. Format stp binding process process-id1 [ to process-id2 ] link-share undo stp binding process process-id1 [ to process-id2 ]. Precautions After the stp binding process link-share command is run on a port, the port will perform the following operations: Participates in the status calculation of a specified MSTP process without affecting packet forwarding of this MSTP process.
By default, a port is a non-BPDU-filter port. Usage Guidelines Usage Scenario On a network running a spanning tree protocol, if the stp edged-port enable command is used to configure a port as an edge port, the port will not participate in the spanning tree calculation. Related Topics stp bpdu-filter default.
Format stp bpdu-filter default undo stp bpdu-filter default. Precautions After the stp bpdu-filter default command is run, a port that has been configured with the undo stp bpdu-filter command will become a BPDU-filter port. Related Topics stp bpdu-filter. By default, the BPDU protection is disabled. Format stp bpdu-protection undo stp bpdu-protection.
Usage Guidelines Usage Scenario On a Layer 2 network running a spanning tree protocol, a port connected to terminals does not need to participate in spanning tree calculation. Precautions After BPDU protection is enabled, a switching device sets an edge port to error down state if the edge port receives a BPDU and retains the port as an edge port. By default, the diameter of the spanning tree is 7. If to vlan-id2 is not specified, the diameter is configured only for the VLAN specified by vlan-id1.
Usage Guidelines Usage Scenario On a network running a spanning tree protocol, the network diameter is the maximum number of devices between two switching devices. Related Topics stp timer forward-delay. By default, the MSTP packet format is auto. Parameters Parameter Description Value auto Indicates that the protocol format is self-adaptive. By default, the digest snooping is disabled. Format stp config-digest-snoop undo stp config-digest-snoop.
Usage Guidelines Usage Scenario On a Layer 2 network running a spanning tree protocol, if the topology of a spanning tree instance changes, the forwarding paths of VLANs that are mapped to this instance change. Based on methods for processing ARP entries, the converging modes of a spanning tree protocol are classified into fast and normal: In fast mode, entries that need to be updated in an ARP table are directly deleted. In normal mode, entries that need to be updated in an ARP table quickly age.
If the number of detection times for aging out ARP entries is greater than 0, the switching device detects these ARP entries before deleting them. Example Set the converging mode of the spanning tree protocol on the Ethernet switch as normal. Specifies one or more VLANs in which the port path cost is set. If to vlan-id2 is not specified, the port path cost is configured only for the VLAN specified by vlan-id1.
Usage Guidelines Usage Scenario The path cost of a port is an important basis for calculating a spanning tree. Path costs depend on path cost calculation standards. After the path cost calculation standard is determined, set a relatively small path cost within a specified range for a port that has a high link rate. In the Huawei legacy standard, default path costs for ports with different link rates are different, as shown in the following table. By default, all the ports on the switching device are non-edge ports.
Parameters Parameter Description Value enable Sets the current port as an edge port. Precautions An edge port does not participate in spanning tree calculation. The device supports automatic detection of the edge port. When the port connected to the terminal changes from Down to Up, the port enters the forwarding state after two times the hello interval plus one. If automatic detection is not configured, the port enters the forwarding state after 30s.
Related Topics stp bpdu-protection. By default, the ports on a switching device are non-edge ports. Format stp edged-port default undo stp edged-port default. Example Configure all ports on an edge device as edge ports. Format stp enable undo stp enable stp disable undo stp disable.
Configurations on a switching device, such as, the switching device priority and port priority, will affect spanning tree calculation. Any change of the configurations may cause network flapping. Parameters such as the switch priority and port priority affect spanning tree calculation, and change of these parameters may cause network flapping.
To ensure fast and stable spanning tree calculation, perform basic configurations on the switch and ports before enabling VBST. Related Topics stp vlan enable. By default, the shared-link protection of an MSTP process is disabled. Format stp link-share-protection undo stp link-share-protection. Views MSTP process view. Usage Guidelines Usage Scenario In networking with a switching device dual-homed to an upper-layer network, if a public link becomes faulty, rings that the public link accesses may unblock their blocked ports.
Precautions Shared-link protection is valid only in processes. Related Topics stp binding process link-share. By default, loop protection on ports is disabled. Format stp loop-protection undo stp loop-protection. Usage Guidelines Usage Scenario On a network running a spanning tree protocol, a switching device maintains the status of the root port and blocked port by continually receiving BPDUs from the upstream switching device. By default, the maximum hops in an MST region is Format stp max-hops hop undo stp max-hops.
Parameters Parameter Description Value hop Specifies the maximum hops. The value ranges from 1 to Example Set the maximum hops in the MST region to Format stp mcheck. Precautions This command does not take effect on a port in Down state. By default, the switching device operates in MSTP mode. Usage Guidelines Usage Scenario On the network running a spanning tree protocol, switches running different spanning tree protocols cannot communicate with each other. Example Set the operation mode of the switching device to the STP mode.
By default, the enhanced transition mechanism is configured on an interface. Format stp no-agreement-check undo stp no-agreement-check. To address this problem, the stp no-agreement-check command can be used to set a common fast transition mechanism or an enhanced transition mechanism on a port. The device currently supports the following modes: Enhanced mode: The current interface counts a root port when it calculates the synchronization flag bit.
Common mode: The current interface ignores the root port when it calculates the synchronization flag bit. Answer added by muzzamil nawaz, Electrical Site Engineer 4 years ago. Spanning-Tree mode rapid-pvst Note this command will be executed in Global Configuration Mode, which will be something like below Switch Config Thanks. Answer added by mohammed abd alla abdelmagid awad elsied, line maintenace engineer , tarco maintenance center 4 years ago. Switch configure terminal Switch config spanning-tree mode rapid-pvst.
Answer added by Sharowar Jahan, Sr. Network Engineer , Mango Teleservices Limited 4 years ago. Any port that is directly connected to an end station cannot create bridging loops. Therefore, the port can rapidly transition to the forwarding state by skipping the learning and listening states. To enable immediate transition into the forwarding state, you can enable the STP portfast feature. The portfast feature immediately transitions the port into STP forwarding mode upon link-up.
The port still participates in STP, so if the port is to be a part of the loop, the port eventually transitions into STP blocking mode. Search Scope:.
0コメント