实验拓扑
实验需求
实验思路
配置IP地址
链路聚合
vlan配置
配置生产树
实验步骤
配置IP地址
以R1为例
<Huawei>sys
[Huawei]sys r1
[r1]int g0/0/02
[r1-GigabitEthernet0/0/2]ip address 12.1.1.1 24
Jan 28 2024 17:09:03-08:00 r1 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[r1-GigabitEthernet0/0/2]q
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 23.1.1.1 24
Jan 28 2024 17:09:46-08:00 r1 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]ip address 34.1.1.1 24
链路聚合
[sw1]int g0/0/2
[sw1-GigabitEthernet0/0/2]eth-trunk 1
[sw1-GigabitEthernet0/0/2]int g0/0/3
[sw1-GigabitEthernet0/0/3]eth-trunk 1
[sw1-GigabitEthernet0/0/3]int g0/0/7
[sw1-GigabitEthernet0/0/7]eth-trunk 1
vlan配置
以sw4为例
[sw4]vlan 3
[sw4-vlan3]q
[sw4]port-group 1
[sw4-port-group-1]group-member e0/0/0
[sw4-port-group-1]port link-type access
[sw4-Ethernet0/0/1]port link-type access
[sw4-Ethernet0/0/2]port link-type access
[sw4-Ethernet0/0/3]port link-type access
[sw4-Ethernet0/0/4]port link-type access
[sw4-port-group-1]port default
Jan 28 2024 20:28:20-08:00 sw4 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 12, the
change loop count is 0, and the maximum number of records is 4095.v
[sw4-port-group-1]port default vlan 3
[sw4-Ethernet0/0/1]port default vlan 3
[sw4-Ethernet0/0/2]port default vlan 3
[sw4-Ethernet0/0/3]port default vlan 3
[sw4-Ethernet0/0/4]port default vlan 3
配置生产树
以sw1为例
[sw1]stp region-configuration
[sw1-mst-region]instance 1 vlan 2
[sw1-mst-region]instance 2 vlan 3
[sw1-mst-region]active region-configuration
[sw1-mst-region]
Jan 28 2024 20:32:54-08:00 sw1 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 8, the c
hange loop count is 0, and the maximum number of records is 4095.
[sw1-mst-region]q
[sw1]stp instance 1 root primary
[sw1]stp instance 2 root secondary