直连链路得配置:
1.实验拓扑:
实验配置:
R1:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR1
[AR1]int l
[AR1]int LoopBack 0
[AR1-LoopBack0]ip ad
[AR1-LoopBack0]ip address 1.1.1.1 32
[AR1-LoopBack0]q
[AR1]int g0/0/0
[AR1-GigabitEthernet0/0/0]ip ad
[AR1-GigabitEthernet0/0/0]ip address 12.1.1.1 24
Mar 27 2023 15:05:38-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR1-GigabitEthernet0/0/0]q
[AR1]
[AR1]
[AR1]q
R2:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR2
[AR2]int l
[AR2]int LoopBack 0
[AR2-LoopBack0]ip ad
[AR2-LoopBack0]ip address 2.2.2.2 32
[AR2-LoopBack0]q
[AR2]int g0/0/0
[AR2-GigabitEthernet0/0/0]ip ad
[AR2-GigabitEthernet0/0/0]ip address 12.1.1.2 24
Mar 27 2023 15:06:23-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR2-GigabitEthernet0/0/0]q
[AR2]int g0/0/1
[AR2-GigabitEthernet0/0/1]ip ad
[AR2-GigabitEthernet0/0/1]ip address 23.1.1.2
^
Error:Incomplete command found at '^' position.
[AR2-GigabitEthernet0/0/1]ip address 23.1.1.2 24
Mar 27 2023 15:06:52-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR2-GigabitEthernet0/0/1]
[AR2-GigabitEthernet0/0/1]
[AR2-GigabitEthernet0/0/1]q
R3:
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR3
[AR3]int g0/0/0
[AR3-GigabitEthernet0/0/0]ip ad
[AR3-GigabitEthernet0/0/0]ip address 23.1.1.3 24
Mar 27 2023 15:07:12-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR3-GigabitEthernet0/0/0]int l
[AR3-GigabitEthernet0/0/0]int l
[AR3-GigabitEthernet0/0/0]int loo
[AR3-GigabitEthernet0/0/0]q
[AR3]int l
[AR3]int LoopBack 0
[AR3-LoopBack0]ip ad
[AR3-LoopBack0]ip address 3.3.3.3 32
[AR3-LoopBack0]q
[AR3]
[AR3]
[AR3]
测试结果: