Configure Huawei MSTP parameters as follows:
- Enable the MSTP function.
- Enable the MSTP function on port 0/19/0.
- Set the MSTP running mode to MSTP compatible mode.
- Configure MST region parameters:
- Configure the MD5-Key for the MD5 encryption algorithm to 0x11ed224466.
- Configure the MST region name to huawei-mstp-bridge.
- Map VLAN2-VLAN10 and VLAN12-VLAN16 to MSTP instance 3.
- Map all the VLANs to the specified MSTP instances.
- Configure the MSTP revision level of the device to 100.
- Configure the maximum hops for the MST region to 10.
- Activate the configuration of the MST region manually.
- Configure the priority of the device in spanning tree instance 2 to 4096.
- Configure the current device as the root bridge of MSTP instance 2.
- Configure the diameter of the switching network to 6.
- Configure the calculation standard for the path cost to IEEE 802.1t.
- Configure the time parameters of a specified bridge:
- Configure the forward delay to 2000 centiseconds.
- Configure the hello time to 1000 centiseconds.
- Configure the max age to 3000 centiseconds.
- Configure the timeout time factor to 6.
- Configure the parameters of a specified port:
- Configure the maximum number of packets transmitted in a hello time period to 16.
- Configure port 0/19/0 to be an edge port.
- Configure the path cost of the port in a specified spanning tree instance to 1024.
- Configure the priority of the port to 64.
- The link connected to port 0/19/0 is a point-to-point link.
- Enable the BPDU protection function on the device.
huawei(config)#stp enable Change global stp state may active region configuration,it may take several minutes,are you sure to change global stp state? [Y/N][N]y huawei(config)#stp port 0/19/0 enable huawei(config)#stp mode mstp huawei(config)#stp md5-key 11ed224466 huawei(config)#stp region-configuration huawei(stp-region-configuration)#region-name huawei-mstp-bridge huawei(stp-region-configuration)#instance 3 vlan 2 to 10 12 to 16 huawei(stp-region-configuration)#vlan-mapping module 16 huawei(stp-region-configuration)#revision-level 100 huawei(stp-region-configuration)#active region-configuration huawei(stp-region-configuration)#quit huawei(config)#stp instance 2 priority 4096 huawei(config)#stp instance 2 root primary huawei(config)#stp max-hops 10 huawei(config)#stp bridge-diameter 6 huawei(config)#stp pathcost-standard dot1t huawei(config)#stp timer forward-delay 2000 huawei(config)#stp timer hello 1000 huawei(config)#stp timer max-age 3000 huawei(config)#stp time-factor 6 huawei(config)#stp port 0/19/0 transmit-limit 16 huawei(config)#stp port 0/19/0 edged-port enable huawei(config)#stp port 0/19/0 instance 0 cost 1024 huawei(config)#stp port 0/19/0 instance 0 port-priority 64 huawei(config)#stp port 0/19/0 point-to-point force-true huawei(config)#stp bpdu-protection enable
No comments:
Post a Comment