Hello everyone, this is G-LAB IT.
⭕May 18th
CCNA+HCIA
A new class is coming
There is an early bird price for registration now, and if you are interested, you can consult
Emphasis on the future!
You can ask the customer service for the course price
V:GLAB-Mary
This course includes offline teaching, online live broadcast, recorded broadcast, experiments, exam exercises, tutoring and Q&A, class groups and comprehensive teaching services.
The following is the Elementary Course - Huawei Spanning Tree Lab Configuration
01. Experimental topology
02. Experimental requirements
1. Complete the link bundling of L2 as shown in the figure
2. Run MSTP to complete load balancing between cores
3. Complete the link bundling of L3 as shown in the figure
03. Experimental procedures
A . L2的Etherchannel
SW1:
[SW1]vlan batch 10 20 30 40 (sw1上创建4个vlan)
[SW1]int Eth-Trunk 1 (创建链路聚合逻辑口)
[SW1-Eth-Trunk1]trunkport g0/0/1 (将物理接口加入逻辑接口)
[SW1-Eth-Trunk1]trunkport g0/0/2 (将物理接口加入逻辑接口)
[SW1-Eth-Trunk1]port link-type trunk (配置为trunk接口)
[SW1-Eth-Trunk1]port trunk allow-pass vlan all (透传vlan)
[SW1]int Eth-Trunk 2 (创建链路聚合逻辑口)
[SW1-Eth-Trunk2]trunkport g0/0/3 (将物理接口加入逻辑接口)
[SW1-Eth-Trunk2]trunkport g0/0/4 (将物理接口加入逻辑接口)
[SW1-Eth-Trunk2]port link-type trunk (配置为trunk接口)
[SW1-Eth-Trunk2]port trunk allow-pass vlan all (透传vlan)
SW2:
[SW2]vlan batch 10 20 30 40 (sw2上创建4个vlan)
[SW2]int Eth-Trunk 1 (创建链路聚合逻辑口)
[SW2-Eth-Trunk1]trunkport g0/0/1 (将物理接口加入逻辑接口)
[SW2-Eth-Trunk1]trunkport g0/0/2 (将物理接口加入逻辑接口)
[SW2-Eth-Trunk1]port link-type trunk (配置为trunk接口)
[SW2-Eth-Trunk1]port trunk allow-pass vlan all (透传vlan)
[SW2]int Eth-Trunk 3 (创建链路聚合逻辑口)
[SW2-Eth-Trunk3]mode lacp-static (指定动态LACP模式)
[SW2-Eth-Trunk3]trunkport g0/0/3 (将物理接口加入逻辑接口)
[SW2-Eth-Trunk3]trunkport g0/0/4 (将物理接口加入逻辑接口)
[SW2-Eth-Trunk3]port link-type trunk (配置为trunk接口)
[SW2-Eth-Trunk3]port trunk allow-pass vlan all (透传vlan)
SW3:
[SW3]vlan batch 10 20 30 40 (sw3上创建4个vlan)
[SW3]int Eth-Trunk 2 (创建链路聚合逻辑口)
[SW3-Eth-Trunk2]trunkport g0/0/1 (将物理接口加入逻辑接口)
[SW3-Eth-Trunk2]trunkport g0/0/2 (将物理接口加入逻辑接口)
[SW3-Eth-Trunk2]port link-type trunk (配置为trunk接口)
[SW3-Eth-Trunk2]port trunk allow-pass vlan all (透传vlan)
[SW1]int Eth-Trunk 3 (创建链路聚合逻辑口)
[SW3-Eth-Trunk3]mode lacp-static (指定动态LACP模式)
[SW3-Eth-Trunk3]trunkport g0/0/3 (将物理接口加入逻辑接口)
[SW3-Eth-Trunk3]trunkport g0/0/4 (将物理接口加入逻辑接口)
[SW3-Eth-Trunk3]port link-type trunk (配置为trunk接口)
[SW3-Eth-Trunk3]port trunk allow-pass vlan all (透传vlan)
The link bundle status of the three switches is up.
It should be noted that for the two links to be successfully bundled, the link bandwidth and interface configuration must be consistent.
B . MSTP
There are three types of Spanning Tree modes: STP (Industry Standard), RSTP (Industry Standard), and MST (Industry Standard). The default mode is MST. STP and RSTP have one tree for all VLANs, so load balancing cannot be implemented.
At this time, SW1 has an ALTE port, which proves that SW1 is definitely not a root bridge.
SW1:
[SW1]stp mode mstp (默认模式)
[SW1]stp region-configuration (进入mst配置模式)
[SW1-mst-region]region-name huawei(配置域名,必配且相同)
[SW1-mst-region]instance 1 vlan 10 30 (将vlan10,30关联实例1)
[SW1-mst-region]instance 2 vlan 20 40 (将vlan20,40关联实例2)
[SW1-mst-region]active region-configuration (激活配置)
[SW1]stp instance 1 root primary (设置SW1为实例1的主根桥)
[SW1]stp instance 2 root secondary
(Set SW1 as the backup root bridge of instance 2)
SW2:
[SW2]stp mode mstp (默认模式)
[SW2]stp region-configuration (进入mst配置模式)
[SW2-mst-region]region-name huawei(配置域名,必配且相同)
[SW2-mst-region]instance 1 vlan 10 30 (将vlan10,30关联实例1)
[SW2-mst-region]instance 2 vlan 20 40 (将vlan20,40关联实例2)
[SW2-mst-region]active region-configuration (激活配置)
[SW2]stp instance 1 root secondary
(Set SW1 as the backup root bridge of Instance 1)
[SW2]stp instance 2 root primary(设置SW1为实例2的主根桥)
SW3:
[SW3]stp mode mstp (默认模式)
[SW3]stp region-configuration (进入mst配置模式)
[SW3-mst-region]region-name huawei(配置域名,必配且相同)
[SW3-mst-region]instance 1 vlan 10 30 (将vlan10,30关联实例1)
[SW3-mst-region]instance 2 vlan 20 40 (将vlan20,40关联实例2)
[SW3-mst-region]active region-configuration (激活配置)
In this case, SW1 is the primary root bridge of Instance 1 and SW2 is the primary root bridge of Instance 2, thus implementing the load between VLANs
C . Link bundling for L3
Layer 2 link bundling is mainly used to prevent loops and increase bandwidth, while Layer 3 link bundling is used to increase bandwidth
Huawei's S5700 switches do not support changing Layer 2 ports to Layer 3 ports. Therefore, the link bundling of L2 and the link bundling of L3 are basically the same.
G-LAB IT LAB COURSE