R1
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 192.168.1.254 24
[zjlfc-GigabitEthernet0/0/0]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 12.1.1.1 24
[zjlfc-GigabitEthernet0/0/1]q
[zjlfc]ospf router-id 1.1.1.1
[zjlfc-ospf-1]a 1
[zjlfc-ospf-1-area-0.0.0.1]net 192.168.1.0 0.0.0.255
[zjlfc-ospf-1-area-0.0.0.1]net 12.1.1.0 0.0.0.255
R2
[zjlfc]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 12.1.1.2 24
[zjlfc-GigabitEthernet0/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 23.1.1.0 0.0.0.255
R3
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad 23.1.1.3 24
[Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 34.1.1.3 24
[Huawei-GigabitEthernet0/0/1]q
[Huawei]ospf router-id 3.3.3.3
[Huawei-ospf-1]a 0
[Huawei-ospf-1-area-0.0.0.0]net 23.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]net 34.1.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]
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 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]q
[zjlfc-ospf-1]a 2
[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
R5
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 56.1.1.5 24
[zjlfc-GigabitEthernet0/0/1]int g0/0/2
[zjlfc-GigabitEthernet0/0/2]ip ad 192.168.3.254 24
[zjlfc-GigabitEthernet0/0/2]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 45.1.1.5 24
[zjlfc-GigabitEthernet0/0/0]q
[zjlfc]ospf router-id 5.5.5.5
[zjlfc-ospf-1]a 2
[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
R6
<Huawei>undo t m
<Huawei>sy
[Huawei]sy zjlfc
[zjlfc]int g0/0/1
[zjlfc-GigabitEthernet0/0/1]ip ad 192.168.2.254 24
[zjlfc-GigabitEthernet0/0/1]int g0/0/0
[zjlfc-GigabitEthernet0/0/0]ip ad 56.1.1.6 24
[zjlfc-GigabitEthernet0/0/0]
[zjlfc-GigabitEthernet0/0/0]ip r
[zjlfc-GigabitEthernet0/0/0]q
[zjlfc]ip route-static 192.168.3.0 24 g0/0/0 56.1.1.5
[zjlfc]ip route-static 192.168.1.0 24 g0/0/0 56.1.1.5