Ar4
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.1 24
[Huawei-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]undo portsw
[Huawei-Eth-Trunk1]trunkport g 0/0/0 to 0/0/1
Info: This operation may take a few seconds. Please wait for a moment....done.
[Huawei-Eth-Trunk1]ip add 192.168.2.1 24
[Huawei-Eth-Trunk1]un sh
Info: Interface Eth-Trunk1 is not shutdown.
[Huawei-Eth-Trunk1]q
[Huawei]ip route-static 192.168.4.0 24 192.168.2.2
ar2
Enter system view, return user view with Ctrl+Z.
[Huawei]un in e
Info: Information center is disabled.
[Huawei]int Eth-Trunk 1
[Huawei-Eth-Trunk1]undo portsw
[Huawei-Eth-Trunk1]trunkport g 0/0/0 to 0/0/1
Info: This operation may take a few seconds. Please wait for a moment....done.
[Huawei-Eth-Trunk1]ip add 192.168.2.2 24
[Huawei-Eth-Trunk1]un sh
Info: Interface Eth-Trunk1 is not shutdown.
[Huawei-Eth-Trunk1]q
[Huawei]int Eth-Trunk 2
[Huawei-Eth-Trunk2]undo portsw
[Huawei-Eth-Trunk2]trunkport g0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk2]trunkport g3/0/0
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk2]ip add 192.168.3.1 24
[Huawei-Eth-Trunk2]un sh
Info: Interface Eth-Trunk2 is not shutdown.
[Huawei-Eth-Trunk2]q
[Huawei]ip route-static 192.168.4.0 24 192.168.3.2
[Huawei]ip route-static 192.168.1.0 24 192.168.2.1
ar3和ar4类似
Sw1
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]vl b 10 20
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]port link-ty acc
[Huawei-GigabitEthernet0/0/1]port de vl 10
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int e 1
[Huawei-Eth-Trunk1]trunkport g 0/0/2 to 0/0/4
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk1]port link-type trunk
[Huawei-Eth-Trunk1]port trunk all vl all
[Huawei-Eth-Trunk1]q
[Huawei]int e 2
[Huawei-Eth-Trunk2]trunkport g 0/0/5 to 0/0/6
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk2]port link-type trunk
[Huawei-Eth-Trunk2]port trunk all vl all
[Huawei-Eth-Trunk2]
Sw2与sw1类似
ar1
Enter system view, return user view with Ctrl+Z.
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int e 2
[Huawei-Eth-Trunk2]undo portsw
[Huawei-Eth-Trunk2]trunkport g 0/0/0 to 0/0/1
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk2]q
[Huawei]int e 2.1
[Huawei-Eth-Trunk2.1]dot1q termination vid 10
[Huawei-Eth-Trunk2.1]arp broadcast enable
[Huawei-Eth-Trunk2.1]ip add 192.168.10.1 24
[Huawei-Eth-Trunk2.1]un sh
Info: Interface Eth-Trunk2.1 is not shutdown.
[Huawei-Eth-Trunk2.1]q
[Huawei]int e 2.2
[Huawei-Eth-Trunk2.2]dot1q termination vid 20
[Huawei-Eth-Trunk2.2]arp broadcast enable
[Huawei-Eth-Trunk2.2]ip add 192.168.20.1 24
[Huawei-Eth-Trunk2.2]un sh
Info: Interface Eth-Trunk2.2 is not shutdown.
[Huawei-Eth-Trunk2.2]q
[Huawei]int e 3
[Huawei-Eth-Trunk3]undo portsw
[Huawei-Eth-Trunk3]trunkport g 0/0/2
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk3]trunkport g 3/0/0
Info: This operation may take a few seconds. Please wait for a moment...done.
[Huawei-Eth-Trunk3]ip add 192.168.5.1 24
[Huawei-Eth-Trunk3]un sh
Info: Interface Eth-Trunk3 is not shutdown.
[Huawei-Eth-Trunk3]q
[Huawei]ip route-static 192.168.6.0 24 192.168.5.2
ar2与ar1类似
实验最终解过实现ping即可