R1
<Huawei>
<Huawei>undo t m
<Huawei>sy
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 192.168.1.254 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 12.1.1.1 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ospf router-id 1.1.1.1
[Huawei-ospf-1]a 1
[Huawei-ospf-1-area-0.0.0.1]net 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.1]q
[Huawei-ospf-1]q
[Huawei]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ospf authentication-mode simple huawei
R2
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 12.1.1.2 24
[zjlfc-GigabitEthernet0/0/0]int e0/0/0
[zjlfc-Ethernet0/0/0]ip ad 11.1.1.1 24
[zjlfc-Ethernet0/0/0]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 23.1.1.2 24
[zjlfc-GigabitEthernet0/0/1]q
[zjlfc]ospf router-id 2.2.2.2
[zjlfc-ospf-1]a 1
[zjlfc-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.1]q
[zjlfc-ospf-1]a 0
[zjlfc-ospf-1-area-0.0.0.0]net 11.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ospf authentication-mode simple huawei
[zjlfc-GigabitEthernet0/0/0]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ospf cost 13
R3
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 23.1.1.3 24
[zjlfc-GigabitEthernet0/0/0]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 34.1.1.3 24
[zjlfc-GigabitEthernet0/0/1]q
[zjlfc]ospf router-id 3.3.3.3
[zjlfc-ospf-1]a 0
[zjlfc-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]net 34.1.1.0 0.0.0.255
R4
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 34.1.1.4 24
[zjlfc-GigabitEthernet0/0/0]int e0/0/0
[zjlfc-Ethernet0/0/0]ip ad 15.1.1.2 24
[zjlfc-Ethernet0/0/0]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 45.1.1.4 24
[zjlfc-GigabitEthernet0/0/1]q
[zjlfc]ospf router-id 4.4.4.4
[zjlfc-ospf-1]a 0
[zjlfc-ospf-1-area-0.0.0.0]net 34.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]net 15.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]q
[zjlfc-ospf-1]a 2
[zjlfc-ospf-1-area-0.0.0.2]net 45.1.1.0 0.0.0.255
R5
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 45.1.1.5 24
[zjlfc-GigabitEthernet0/0/0]int g0/0/2
[zjlfc-GigabitEthernet0/0/2]ip ad 192.168.3.254 24
[zjlfc-GigabitEthernet0/0/2]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 56.1.1.5 24
[zjlfc-GigabitEthernet0/0/1]q
[zjlfc]ospf r
[zjlfc]ospf router-id 5.5.5.5
[zjlfc-ospf-1]a 2
[zjlfc-ospf-1-area-0.0.0.2]net 192.168.3.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.2]net 45.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.2]q
[zjlfc-ospf-1]q
[zjlfc]ip route-static 192.168.1.0 24 g0/0/0 45.1.1.4
[zjlfc]ip route-static 192.168.2.0 24 g0/0/1 56.1.1.6
[zjlfc]ospf 1
[zjlfc-ospf-1]import-route static
[zjlfc-ospf-1]
R6
<Huawei>undo t m
<Huawei>sy
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 56.1.1.6 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 192.168.2.254 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ip route-static 192.168.1.0 24 g0/0/0 56.1.1.5
[Huawei]ip route-static 192.168.2.0 24 g0/0/0 56.1.1.5
R7
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int e0/0/0
[zjlfc-Ethernet0/0/0]ip ad 11.1.1.2 24
[zjlfc-Ethernet0/0/0]int e0/0/1
[zjlfc-Ethernet0/0/1]ip ad 14.1.1.1 24
[zjlfc-Ethernet0/0/1]ospf 1
[zjlfc-ospf-1]a 0
[zjlfc-ospf-1-area-0.0.0.0]net 11.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]net 14.1.1.0 0.0.0.255
R8
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int e0/0/0
[zjlfc-Ethernet0/0/0]ip ad 14.1.1.2 24
[zjlfc-Ethernet0/0/0]int e0/0/1
[zjlfc-Ethernet0/0/1]ip ad 15.1.1.1 24
[zjlfc-Ethernet0/0/1]ospf 1
[zjlfc-ospf-1]a 0
[zjlfc-ospf-1-area-0.0.0.0]net 14.1.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.0]net 15.1.1.0 0.0.0.255