链路ip
192.168.1.0 27
192.168.1.32 27
192.168.1.64 27
192.168.1.96 27
192.168.1.128 27
环回ip
192.168.1.161 32
192.168.1.193 32
192.168.1.225 32
AR1
[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.1 27
Mar 26 2023 20:21:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int l0
[Huawei-LoopBack0]ip add 192.168.1.32 27 Error: The specified IP
address is invalid. [Huawei-LoopBack0]ip add 192.168.1.32 24 Info: A
similar IP subnet already exists. Please verify the current IP subnet
de sign. [Huawei-LoopBack0]ip add 192.168.161 32
^ Error: Wrong parameter found at ‘^’ position. [Huawei-LoopBack0]ip add 192.168.1.161 32
[Huawei-LoopBack0]q [Huawei]ospf 1 [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ospf dr-priority
[Huawei-GigabitEthernet0/0/0]ospf dr-priority 10
[Huawei-GigabitEthernet0/0/0]
AR2
[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add
192.168.1.33 27 Mar 26 2023 20:29:52-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the
interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int l0 [Huawei-LoopBack0]ip add
192.168.1.193 32 [Huawei-LoopBack0]q [Huawei]ospf 1 [Huawei-ospf-1]areo 0
^ Error: Unrecognized command found at ‘^’ position. [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.33 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q
AR3
[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.65
27 Mar 26 2023 20:34:14-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.97 27 Mar 26 2023
20:34:46-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
IP on the interface GigabitEthernet0/0/1 has entered the UP state.
[Huawei-GigabitEthernet0/0/1]int l0 [Huawei-LoopBack0]ip add
192.168.1.
^ Error: Wrong parameter found at ‘^’ position. [Huawei-LoopBack0]q [Huawei]ospf 1 router [Huawei]ospf 1
router-id
^ Error:Incomplete command found at ‘^’ position. [Huawei]ospf 1 [Huawei-ospf-1]area 0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]q [Huawei-ospf-1]area1
^ Error: Unrecognized command found at ‘^’ position. [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]ne
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.97 0.0.0.0
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher
123456
AR4
[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.65
27 [Huawei-GigabitEthernet0/0/0]int g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 192.168.1.97 27 [Huawei]ospf 1
[Huawei-ospf-1]area 0 [Huawei-ospf-1-area-0.0.0.0]network 192.168.1.65
0.0.0.0 [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]ne [Huawei-ospf-1-area-0.0.0.1]network 192.168.1.97 0.0.0.0
[Huawei-ospf-1-area-0.0.0.1]q [Huawei-GigabitEthernet0/0/0]ospf
authentication-mode md5 1 cipher 123456
AR5
[Huawei]int g 0/0/0 [Huawei-GigabitEthernet0/0/0]ip add 192.168.1.130
27 Mar 26 2023 20:47:11-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The
line protocol IP on the interface GigabitEthernet0/0/0 has entered
the UP state. [Huawei-GigabitEthernet0/0/0]int l0
[Huawei-LoopBack0]ip add 192.168.1.225 32 [Huawei-LoopBack0]q
[Huawei]ospf 1 [Huawei-ospf-1]area 1 [Huawei-ospf-1-area-0.0.0.1]net
[Huawei-ospf-1-area-0.0.0.1]network 192.168.1.130 0.0.0.0
[Huawei-ospf-1]default-route-advertise //发放缺省
[Huawei-GigabitEthernet0/0/0]ospf authentication-mode md5 1 cipher
123456
AR3
[Huawei]display ospf lsdb
OSPF Process 1 with Router ID 192.168.1.65
Link State Database
Area: 0.0.0.0
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.1.65 192.168.1.65 1117 36 80000003 1
Sum-Net 192.168.1.96 192.168.1.65 1108 28 80000001 1
Area: 0.0.0.1
Type LinkState ID AdvRouter Age Len Sequence Metric
Router 192.168.1.98 192.168.1.98 732 48 80000005 1
Router 192.168.1.65 192.168.1.65 681 36 80000006 1
Sum-Net 192.168.1.64 192.168.1.65 1108 28 80000001 1
AR3
AR4
AR5