复习实验
步骤1:分配网段
R8的环回:
汇总:192.168.1.0/28
划分:192.168.1.0/30;192.168.1.4/30;192.168.1.8/30
R8-R7:192.168.1.16/28
R8-R10:192.168.1.32/28
R7-R9:192.168.1.48/28
R10-R9:192.168.1.64/28
R9-R11:192.168.1.80/28
R11-R9:192.168.1.96/28
R11-R12:192.168.1.112/28
vlan 2:192.168.1.128/28
vlan 3:192.168.1.144/28
步骤2:配置
AR7
<Huawei>
<Huawei>sys
[Huawei]sys R7
[R7]interface GigabitEthernet 0/0/0
[R7-GigabitEthernet0/0/0]ip address 192.168.1.18 28
[R7-GigabitEthernet0/0/0]q
[R7]interface GigabitEthernet 0/0/1
[R7-GigabitEthernet0/0/1]ip address 192.168.1.49 28
[R7-GigabitEthernet0/0/1]q
[R7]ip route-static 192.168.1.0 28 192.168.1.17
[R7]ip route-static 192.168.1.32 28 192.168.1.17
[R7]ip route-static 192.168.1.128 28 192.168.1.17
[R7]ip route-static 192.168.1.144 28 192.168.1.17
[R7]ip route-static 192.168.1.64 28 192.168.1.50
[R7]ip route-static 192.168.1.128 28 192.168.1.50
[R7]ip route-static 192.168.1.144 28 192.168.1.50
[R7]ip route-static 192.168.1.80 28 192.168.1.50
[R7]ip route-static 192.168.1.96 28 192.168.1.50
[R7]ip route-static 192.168.1.112 28 192.168.1.50
[R7]
AR8
<Huawei>
<Huawei>sys
[Huawei]sys R8
[R8]interface LoopBack 0
[R8-LoopBack0]ip address 192.168.1.1 30
[R8-LoopBack0]q
[R8]interface LoopBack 1
[R8-LoopBack1]ip address 192.168.1.5 30
[R8-LoopBack1]q
[R8]interface LoopBack 2
[R8-LoopBack2]ip address 192.168.1.9 30
[R8-LoopBack2]q
[R8]interface GigabitEthernet 0/0/0
[R8-GigabitEthernet0/0/0]ip address 192.168.1.17 28
[R8-GigabitEthernet0/0/0]q
[R8]interface GigabitEthernet 0/0/1
[R8-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[R8-GigabitEthernet0/0/1]q
[R8]ip route-static 192.168.1.48 28 192.168.1.18
[R8]ip route-static 192.168.1.80 28 192.168.1.18
[R8]ip route-static 192.168.1.96 28 192.168.1.18
[R8]ip route-static 192.168.1.112 28 192.168.1.18
[R8]ip route-static 192.168.1.64 28 192.168.1.34
[R8]ip route-static 192.168.1.80 28 192.168.1.34
[R8]ip route-static 192.168.1.96 28 192.168.1.34
[R8]ip route-static 192.168.1.112 28 192.168.1.34
[R8]ip route-static 192.168.1.128 28 192.168.1.34
[R8]ip route-static 192.168.1.144 28 192.168.1.34
[R8]
AR9
<Huawei>
<Huawei>sys
[Huawei]sys R9
[R9]interface GigabitEthernet 0/0/0
[R9-GigabitEthernet0/0/0]ip address 192.168.1.50 28
[R9-GigabitEthernet0/0/0]q
[R9]interface GigabitEthernet 0/0/1
[R9-GigabitEthernet0/0/1]ip address 192.168.1.66 28
[R9-GigabitEthernet0/0/1]q
[R9]interface GigabitEthernet 0/0/2
[R9-GigabitEthernet0/0/2]ip address 192.168.1.81 28
[R9-GigabitEthernet0/0/2]q
[R9]interface GigabitEthernet 4/0/0
[R9-GigabitEthernet4/0/0]ip address 192.168.1.97 28
[R9-GigabitEthernet4/0/0]q
[R9]ip route-static 192.168.1.112 28 192.168.1.82
[R9]ip route-static 192.168.1.112 28 192.168.1.98
[R9]ip route-static 192.168.1.16 28 192.168.1.49
[R9]ip route-static 192.168.1.0 28 192.168.1.49
[R9]ip route-static 192.168.1.0 28 192.168.1.65
[R9]ip route-static 192.168.1.32 28 192.168.1.65
[R9]ip route-static 192.168.1.128 28 192.168.1.65
[R9]ip route-static 192.168.1.144 28 192.168.1.6
[R9]
AR10
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys R10
[R10]interface GigabitEthernet 0/0/0
[R10-GigabitEthernet0/0/0]ip address 192.168.1.65 28
[R10-GigabitEthernet0/0/0]q
[R10]interface GigabitEthernet 0/0/1
[R10-GigabitEthernet0/0/1]ip address 192.168.1.34 28
[R10-GigabitEthernet0/0/1]q
[R10]interface GigabitEthernet 0/0/2.1
[R10-GigabitEthernet0/0/2.1]ip address 192.168.1.129 28
[R10-GigabitEthernet0/0/2.1]dot1q termination vid 2
[R10-GigabitEthernet0/0/2.1]arp broadcast enable
[R10-GigabitEthernet0/0/2.1]q
[R10]interface GigabitEthernet 0/0/2.2
[R10-GigabitEthernet0/0/2.2]ip address 192.168.1.145 28
[R10-GigabitEthernet0/0/2.2]dot1q termination vid 3.
[R10-GigabitEthernet0/0/2.2]arp broadcast enable
[R10-GigabitEthernet0/0/2.2]q
[R10]ip route-static 192.168.1.0 28 192.168.1.33
[R10]ip route-static 192.168.1.16 28 192.168.1.33
[R10]ip route-static 192.168.1.48 28 192.168.1.66
[R10]ip route-static 192.168.1.80 28 192.168.1.66
[R10]ip route-static 192.168.1.96 28 192.168.1.66
[R10]ip route-static 192.168.1.112 28 192.168.1.66
[R10]
AR11
<Huawei>
<Huawei>sys
[Huawei]sys R11
[R11]interface GigabitEthernet 0/0/0
[R11-GigabitEthernet0/0/0]ip address 192.168.1.82 28
[R11-GigabitEthernet0/0/0]q
[R11]interface GigabitEthernet 0/0/1
[R11-GigabitEthernet0/0/1]ip address 192.168.1.98 28
[R11-GigabitEthernet0/0/1]q
[R11]interface GigabitEthernet 0/0/2
[R11-GigabitEthernet0/0/2]ip address 192.168.1.113 28
[R11-GigabitEthernet0/0/2]q
[R11]ip route-static 192.168.1.48 28 192.168.1.97
[R11]ip route-static 192.168.1.16 28 192.168.1.97
[R11]ip route-static 192.168.1.0 28 192.168.1.97
[R11]ip route-static 192.168.1.64 28 192.168.1.97
[R11]ip route-static 192.168.1.32 28 192.168.1.97
[R11]ip route-static 192.168.1.128 28 192.168.1.97
[R11]ip route-static 192.168.1.144 28 192.168.1.97
[R11]ip route-static 192.168.1.144 28 192.168.1.81
[R11]ip route-static 192.168.1.128 28 192.168.1.81
[R11]ip route-static 192.168.1.64 28 192.168.1.81
[R11]ip route-static 192.168.1.48 28 192.168.1.81
[R11]ip route-static 192.168.1.32 28 192.168.1.81
[R11]ip route-static 192.168.1.16 28 192.168.1.81
[R11]ip route-static 192.168.1.0 28 192.168.1.81
[R11]
AR12
<Huawei>
<Huawei>sys
[Huawei]sys R12
[R12]interface GigabitEthernet 0/0/0
[R12-GigabitEthernet0/0/0]ip address 192.168.1.114 28
[R12-GigabitEthernet0/0/0]q
[R12]ip route-static 192.168.1.0 28 192.168.1.113
[R12]ip route-static 192.168.1.16 28 192.168.1.113
[R12]ip route-static 192.168.1.32 28 192.168.1.113
[R12]ip route-static 192.168.1.48 28 192.168.1.113
[R12]ip route-static 192.168.1.64 28 192.168.1.113
[R12]ip route-static 192.168.1.80 28 192.168.1.113
[R12]ip route-static 192.168.1.96 28 192.168.1.113
[R12]ip route-static 192.168.1.128 28 192.168.1.113
[R12]ip route-static 192.168.1.144 28 192.168.1.11
[R12]
LSW1
<Huawei>
<Huawei>sys
[Huawei]sys SW1
[SW1]vlan 2
[SW1-vlan2]q
[SW1]vlan 3
[SW1-vlan3]q
[SW1]interface Ethernet 0/0/2
[SW1-Ethernet0/0/2]port link-type access
[SW1-Ethernet0/0/2]port default vlan 2
[SW1-Ethernet0/0/2]q
[SW1]interface Ethernet 0/0/3
[SW1-Ethernet0/0/3]port link-type access
[SW1-Ethernet0/0/3]port default vlan 3
[SW1-Ethernet0/0/3]q
[SW1]interface Ethernet 0/0/1
[SW1-Ethernet0/0/1]port link-type trunk
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 2
[SW1-Ethernet0/0/1]port trunk allow-pass vlan 3
[SW1-Ethernet0/0/1]q
[SW1]interface Ethernet 0/0/4
[SW1-Ethernet0/0/4]port link-type trunk
[SW1-Ethernet0/0/4]port trunk allow-pass vlan 2
[SW1-Ethernet0/0/4]port trunk allow-pass vlan 3
[SW1-Ethernet0/0/4]q
[SW1]
LSW2
<Huawei>
<Huawei>sys
[Huawei]sys SW2
[SW2]vlan 2
[SW2-vlan2]q
[SW2]vlan 3
[SW2-vlan3]q
[SW2]interface Ethernet 0/0/2
[SW2-Ethernet0/0/2]port link-type access
[SW2-Ethernet0/0/2]port default vlan 2
[SW2-Ethernet0/0/2]q
[SW2]interface Ethernet 0/0/3
[SW2-Ethernet0/0/3]port link-type access
[SW2-Ethernet0/0/3]port default vlan 3
[SW2-Ethernet0/0/3]q
[SW2]interface Ethernet 0/0/1
[SW2-Ethernet0/0/1]port link-type trunk
[SW2-Ethernet0/0/1]port trunk allow-pass vlan 2
[SW2-Ethernet0/0/1]port trunk allow-pass vlan 3
[SW2-Ethernet0/0/1]q
[SW2]