采用"双核心"的冗余网络,可以保证网络的稳定性。利用MSTP(多生成树协议)和VRRP(虚拟路由冗余协议)提高网络可靠性。

一、基本配置
LSW1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
Huawei\]undo info-center ena
Info: Information center is disabled.
\[Huawei\]sys LSW1
\[LSW1\]vlan batch 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
\[LSW1\]int vlan 10
\[LSW1-Vlanif10\]ip add 192.168.10.252 24
\[LSW1-Vlanif10\]int vlan 20
\[LSW1-Vlanif20\]ip add 192.168.20.252 24
\[LSW1-Vlanif20\]int g0/0/1
\[LSW1-GigabitEthernet0/0/1\]p l t
\[LSW1-GigabitEthernet0/0/1\]p t a v 10 20
\[LSW1-GigabitEthernet0/0/1\]int g0/0/2
\[LSW1-GigabitEthernet0/0/2\]p l t
\[LSW1-GigabitEthernet0/0/2\]p t a v 10 20
\[LSW1-GigabitEthernet0/0/2\]qu
\[LSW1\]int eth
\[LSW1\]int Eth-Trunk 1
\[LSW1-Eth-Trunk1\]p l t
\[LSW1-Eth-Trunk1\]p t a v 10 20
\[LSW1-Eth-Trunk1\]qu
\[LSW1\]int g0/0/23
\[LSW1-GigabitEthernet0/0/23\]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment....done.
\[LSW1-GigabitEthernet0/0/23\]int g0/0/24
\[LSW1-GigabitEthernet0/0/24\]eth-trunk 1
Info: This operation may take a few seconds. Please wait for a moment...done.
\[LSW1-GigabitEthernet0/0/24\]qu
LSW2:
\