<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW3
[SW3]vlan ba 10 20 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3]inte g0/0/11
[SW3-GigabitEthernet0/0/11]p l a
[SW3-GigabitEthernet0/0/11]p d v 10
[SW3-GigabitEthernet0/0/11]inte g0/0/12
[SW3-GigabitEthernet0/0/12]p l a
[SW3-GigabitEthernet0/0/12]p d v 20
[SW3-GigabitEthernet0/0/12]inte g0/0/1
[SW3-GigabitEthernet0/0/1]p l t
[SW3-GigabitEthernet0/0/1]p t a v 10 20
[SW3-GigabitEthernet0/0/1]inte g0/0/2
[SW3-GigabitEthernet0/0/2]p l t
[SW3-GigabitEthernet0/0/2]p t a v 10 20
[SW3-GigabitEthernet0/0/2]
[SW3-GigabitEthernet0/0/2]stp re
[SW3-mst-region]in 1 vlan 10 20
[SW3-mst-region]in 2 vlan 30 40
[SW3-mst-region]re huawei
[SW3-mst-region]ac re
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW3-mst-region]
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW4
[SW4]vlan ba 10 20 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW4]inte g0/0/11
[SW4-GigabitEthernet0/0/11]p l a
[SW4-GigabitEthernet0/0/11]p d v 30
[SW4-GigabitEthernet0/0/11]inte g0/0/12
[SW4-GigabitEthernet0/0/12]p l a
[SW4-GigabitEthernet0/0/12]p d v 40
[SW4-GigabitEthernet0/0/12]inte g0/0/1
[SW4-GigabitEthernet0/0/1]p l t
[SW4-GigabitEthernet0/0/1]p t a v 30 40
[SW4-GigabitEthernet0/0/1]inte g0/0/2
[SW4-GigabitEthernet0/0/2]p l t
[SW4-GigabitEthernet0/0/2]p t a v 30 40
[SW4-GigabitEthernet0/0/2]
[SW4-GigabitEthernet0/0/2]stp re
[SW4-mst-region]in 1 vlan 10 20
[SW4-mst-region]in 2 vlan 30 40
[SW4-mst-region]re huawei
[SW4-mst-region]ac re
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW4-mst-region]
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW1
[SW1]vlan ba 10 20 30 40
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1]inte g0/0/1
[SW1-GigabitEthernet0/0/1]p l t
[SW1-GigabitEthernet0/0/1]p t a v 10 20
[SW1-GigabitEthernet0/0/1]inte g0/0/2
[SW1-GigabitEthernet0/0/2]p l t
[SW1-GigabitEthernet0/0/2]p t a v 30 40
[SW1-GigabitEthernet0/0/2]inte eth 1
[SW1-Eth-Trunk1]mo lacp
[SW1-Eth-Trunk1]trunkport g0/0/23
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]trunkport g0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-Eth-Trunk1]p l t
[SW1-Eth-Trunk1]p t a v 10 20 30 40
[SW1-Eth-Trunk1]
[SW1-Eth-Trunk1]stp re
[SW1-mst-region]in 1 vlan 10 20
[SW1-mst-region]in 2 vlan 30 40
[SW1-mst-region]re huawei
[SW1-mst-region]ac re
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW1-mst-region]
[SW1-mst-region]stp in 1 ro pr
[SW1]stp in 2 ro se
[SW1]
[SW1]inte vlan 1
[SW1-Vlanif1]ip ad 192.168.1.1 24
[SW1-Vlanif1]inte vlan 10
[SW1-Vlanif10]ip ad 192.168.10.252 24
[SW1-Vlanif10]vrrp vr 1 vi 192.168.10.254
[SW1-Vlanif10]vrrp vr 1 pr 120
[SW1-Vlanif10]
[SW1-Vlanif10]inte vlan 20
[SW1-Vlanif20]ip ad 192.168.20.252 24
[SW1-Vlanif20]vrrp vr 2 vi 192.168.20.254
[SW1-Vlanif20]vrrp vr 2 pr 120
[SW1-Vlanif20]
[SW1-Vlanif20]inte vlan 30
[SW1-Vlanif30]ip ad 192.168.30.252 24
[SW1-Vlanif30]vrrp vr 3 vi 192.168.30.254
[SW1-Vlanif30]
[SW1-Vlanif30]inte vlan 40
[SW1-Vlanif40]ip ad 192.168.40.252 24
[SW1-Vlanif40]vrrp vr 4 vi 192.168.40.254
[SW1-Vlanif40]
这是这题的灵魂配置
[SW1]ip route-sta 192.168.50.0 24 192.168.1.2
[SW1]ip route-sta 192.168.60.0 24 192.168.1.2
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW2
[SW2]vlan ba 10 20 30 40 100
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2]inte g0/0/22
[SW2-GigabitEthernet0/0/22]p l a
[SW2-GigabitEthernet0/0/22]p d v 100
[SW2-GigabitEthernet0/0/22]inte g0/0/2
[SW2-GigabitEthernet0/0/2]p l t
[SW2-GigabitEthernet0/0/2]p t a v 10 20
[SW2-GigabitEthernet0/0/2]inte g0/0/1
[SW2-GigabitEthernet0/0/1]p l t
[SW2-GigabitEthernet0/0/1]p t a v 30 40
[SW2-GigabitEthernet0/0/1]inte eth 1
[SW2-Eth-Trunk1]mo lacp
[SW2-Eth-Trunk1]trunkport g0/0/23
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]trunkport g0/0/24
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-Eth-Trunk1]p l t
[SW2-Eth-Trunk1]p t a v 10 20 30 40
[SW2-Eth-Trunk1]
[SW2-Eth-Trunk1]stp re
[SW2-mst-region]in 1 vlan 10 20
[SW2-mst-region]in 2 vlan 30 40
[SW2-mst-region]re huawei
[SW2-mst-region]ac re
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW2-mst-region]
[SW2-mst-region]stp in 2 ro pr
[SW2]stp in 1 ro se
[SW2]
[SW2]inte vlan 1
[SW2-Vlanif1]ip ad 192.168.1.2 24
[SW2-Vlanif1]inte vlan 10
[SW2-Vlanif10]ip ad 192.168.10.253 24
[SW2-Vlanif10]vrrp vr 1 vi 192.168.10.254
[SW2-Vlanif10]
[SW2-Vlanif10]inte vlan 20
[SW2-Vlanif20]ip ad 192.168.20.253 24
[SW2-Vlanif20]vrrp vr 2 vi 192.168.20.254
[SW2-Vlanif20]
[SW2-Vlanif20]inte vlan 30
[SW2-Vlanif30]ip ad 192.168.30.253 24
[SW2-Vlanif30]vrrp vr 3 vi 192.168.30.254
[SW2-Vlanif30]vrrp vr 3 pr 120
[SW2-Vlanif30]
[SW2-Vlanif30]inte vlan 40
[SW2-Vlanif40]ip ad 192.168.40.253 24
[SW2-Vlanif40]vrrp vr 4 vi 192.168.40.254
[SW2-Vlanif40]vrrp vr 4 pr 120
[SW2-Vlanif40]
[SW2-Vlanif40]inte vlan 100
[SW2-Vlanif100]ip ad 10.1.1.1 24
[SW2-Vlanif100]
[SW2]ip route-sta 192.168.50.0 24 10.1.1.2
[SW2]ip route-sta 192.168.60.0 24 10.1.1.2
[SW2]
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys SW5
[SW5]vlan ba 50 60
Info: This operation may take a few seconds. Please wait for a moment...done.
[SW5]inte g0/0/1
[SW5-GigabitEthernet0/0/1]p l a
[SW5-GigabitEthernet0/0/1]p d v 50
[SW5-GigabitEthernet0/0/1]inte g0/0/2
[SW5-GigabitEthernet0/0/2]p l a
[SW5-GigabitEthernet0/0/2]p d v 60
[SW5-GigabitEthernet0/0/2]inte g0/0/24
[SW5-GigabitEthernet0/0/24]p l t
[SW5-GigabitEthernet0/0/24]p t a v 50 60
[SW5-GigabitEthernet0/0/24]
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]sys R1
[R1]inte g0/0/0.50
[R1-GigabitEthernet0/0/0.50]ip ad 192.168.50.254 24
[R1-GigabitEthernet0/0/0.50]do te vid 50
[R1-GigabitEthernet0/0/0.50]a b e
[R1-GigabitEthernet0/0/0.50]inte g0/0/0.60
[R1-GigabitEthernet0/0/0.60]ip ad 192.168.60.254 24
[R1-GigabitEthernet0/0/0.60]do te vid 60
[R1-GigabitEthernet0/0/0.60]a b e
[R1-GigabitEthernet0/0/0.60]inte g0/0/2
[R1-GigabitEthernet0/0/2]ip ad 10.1.1.2 24
[R1-GigabitEthernet0/0/2]q
[R1]ip route-static 0.0.0.0 0 10.1.1.1
[R1]