实验拓扑图如下
实验要求
路由器配置
AR1
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ip add 192.168.7.1 255.255.255.0
[Huawei-Tunnel0/0/1]t
[Huawei-Tunnel0/0/1]tu
[Huawei-Tunnel0/0/1]tunnel-protocol g
[Huawei-Tunnel0/0/1]tunnel-protocol gre p
[Huawei-Tunnel0/0/1]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/1]so
[Huawei-Tunnel0/0/1]source 61.0.0.1
Jan 4 2023 19:07:13-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface Tunnel0/0/1 has entered the UP state.
[Huawei-Tunnel0/0/1]
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp n
[Huawei-Tunnel0/0/1]nhrp network-id 200
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp en
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.2 46.0.0.1 r
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.2 46.0.0.1 register
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp en
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.3 56.0.0.1 r
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.3 56.0.0.1 register
[Huawei-Tunnel0/0/1]nhr
[Huawei-Tunnel0/0/1]nhrp ent
[Huawei-Tunnel0/0/1]nhrp entry m
[Huawei-Tunnel0/0/1]nhrp entry multicast
[Huawei-Tunnel0/0/1]nhrp entry multicast d
[Huawei-Tunnel0/0/1]
[Huawei-Tunnel0/0/1]nhrp entry multicast d
[Huawei-Tunnel0/0/1]nhrp entry multicast dynamic
[Huawei-Tunnel0/0/1]q
[Huawei]s
[Huawei]os
[Huawei]ospf1
^
Error: Unrecognized command found at '^' position.
[Huawei]ospf 1
[Huawei-ospf-1]ro
[Huawei-ospf-1]route-i
[Huawei-ospf-1]q
[Huawei]ospf 1 r
[Huawei]ospf 1 router-id 1.1.1.1
Info: The configuration succeeded. You need to restart the OSPF process to valid
ate the new router ID.
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]ne
[Huawei-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.7.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]q
[Huawei]q
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int t
[Huawei]int Tunnel 0/0/0
[Huawei-Tunnel0/0/0]ospf n
[Huawei-Tunnel0/0/0]ospf network-type b
[Huawei-Tunnel0/0/0]ospf network-type broadcast
[Huawei-Tunnel0/0/0]int
[Huawei-Tunnel0/0/0]int
[Huawei-Tunnel0/0/0]int t
[Huawei-Tunnel0/0/0]q
[Huawei]int
[Huawei]interface
[Huawei]interface t
[Huawei]interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1]n
[Huawei-Tunnel0/0/1]ne
[Huawei-Tunnel0/0/1]ne
[Huawei-Tunnel0/0/1]net
[Huawei-Tunnel0/0/1]osp
[Huawei-Tunnel0/0/1]ospf n
[Huawei-Tunnel0/0/1]ospf network-type b
[Huawei-Tunnel0/0/1]ospf network-type broadcast
[Huawei-Tunnel0/0/1]q
AR2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 26.0.0.1 24
Jan 4 2023 18:41:47-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]q
[Huawei]int lo0
[Huawei-LoopBack0]ip add 192.168.2.1 24
[Huawei-LoopBack0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro
[Huawei]ip route-
[Huawei]ip route-static 0.0.0.0 0 26.0.0.2
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/0
[Huawei-Tunnel0/0/0]ip add 192.168.6.2 255.255.255.0
[Huawei-Tunnel0/0/0]t
[Huawei-Tunnel0/0/0]tcp
[Huawei-Tunnel0/0/0]test-aaa
[Huawei-Tunnel0/0/0]tu
[Huawei-Tunnel0/0/0]tunnel-protocol g
[Huawei-Tunnel0/0/0]tunnel-protocol gre p
[Huawei-Tunnel0/0/0]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/0]sou
[Huawei-Tunnel0/0/0]source
[Huawei-Tunnel0/0/0]source g
[Huawei-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jan 4 2023 19:02:48-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface Tunnel0/0/0 has entered the UP state.
[Huawei-Tunnel0/0/0]
[Huawei-Tunnel0/0/0]nh
[Huawei-Tunnel0/0/0]nhrp n
[Huawei-Tunnel0/0/0]nhrp network-id 100
[Huawei-Tunnel0/0/0]nh
[Huawei-Tunnel0/0/0]nhrp ebt
[Huawei-Tunnel0/0/0]nhrp ent
[Huawei-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 re
[Huawei-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 register
[Huawei-Tunnel0/0/0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]osp
[Huawei]ospf ro
[Huawei]ospf router-id 2.2.2.2
[Huawei-ospf-1]ar
[Huawei-ospf-1]area0.0.0.0
^
Error: Unrecognized command found at '^' position.
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]ne
[Huawei-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/0
[Huawei-Tunnel0/0/0]os
[Huawei-Tunnel0/0/0]ospf n
[Huawei-Tunnel0/0/0]ospf network-type b
[Huawei-Tunnel0/0/0]ospf network-type broadcast
[Huawei-Tunnel0/0/0]os
[Huawei-Tunnel0/0/0]ospf dr
[Huawei-Tunnel0/0/0]ospf dr-priority 0
[Huawei-Tunnel0/0/0]
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 36.0.0.1 24
Jan 4 2023 18:43:17-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]q
[Huawei]int lo0
[Huawei-LoopBack0]ip add 192.168.3.1 24
[Huawei-LoopBack0]q
[Huawei]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro
[Huawei]ip route-
[Huawei]ip route-static 0.0.0.0 0 36.0.0.2
[Huawei]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int t
[Huawei]int Tunnel 0/0/0
[Huawei-Tunnel0/0/0]ip add 192.168.6.3 255.255.255.0
[Huawei-Tunnel0/0/0]tu
[Huawei-Tunnel0/0/0]tunnel-protocol g
[Huawei-Tunnel0/0/0]tunnel-protocol gre p
[Huawei-Tunnel0/0/0]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/0]sou
[Huawei-Tunnel0/0/0]source gi
[Huawei-Tunnel0/0/0]source GigabitEthernet 0/0/0
Jan 4 2023 19:05:08-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface Tunnel0/0/0 has entered the UP state.
[Huawei-Tunnel0/0/0]
[Huawei-Tunnel0/0/0]nh
[Huawei-Tunnel0/0/0]nhrp n
[Huawei-Tunnel0/0/0]nhrp network-id 100
[Huawei-Tunnel0/0/0]nh
[Huawei-Tunnel0/0/0]nhrp e
[Huawei-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 r
[Huawei-Tunnel0/0/0]nhrp entry 192.168.6.1 16.0.0.1 register
[Huawei-Tunnel0/0/0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]osp
[Huawei]ospf ro
[Huawei]ospf router-id 3.3.3.3
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.6.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]q
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/0
[Huawei-Tunnel0/0/0]os
[Huawei-Tunnel0/0/0]ospf n
[Huawei-Tunnel0/0/0]ospf network-type b
[Huawei-Tunnel0/0/0]ospf network-type broadcast
[Huawei-Tunnel0/0/0]os
[Huawei-Tunnel0/0/0]ospf dr
[Huawei-Tunnel0/0/0]ospf dr-priority 0
[Huawei-Tunnel0/0/0]
AR4
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 46.0.0.1 24
Jan 4 2023 18:44:22-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]q
[Huawei]int lo0
[Huawei-LoopBack0]ip add 192.168.4.1 24
[Huawei-LoopBack0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro
[Huawei]ip route
[Huawei]ip route-static 0.0.0.0 0 46.0.0.2
[Huawei]ip route-static 0.0.0.0 0 56.0.0.2
[Huawei]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int t
[Huawei]int Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ip add 192.168.7.2 255.255.255.0
[Huawei-Tunnel0/0/1]tu
[Huawei-Tunnel0/0/1]tunnel-protocol g
[Huawei-Tunnel0/0/1]tunnel-protocol gre p
[Huawei-Tunnel0/0/1]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/1]so
[Huawei-Tunnel0/0/1]source 46.0.0.1
Jan 4 2023 19:10:17-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface Tunnel0/0/1 has entered the UP state.
[Huawei-Tunnel0/0/1]
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp en
[Huawei-Tunnel0/0/1]nhrp entry m
[Huawei-Tunnel0/0/1]nhrp entry multicast d
[Huawei-Tunnel0/0/1]nhrp entry multicast dynamic
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp n
[Huawei-Tunnel0/0/1]nhrp network-id 100
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp e
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.2 56.0.0.1 r
[Huawei-Tunnel0/0/1]nhrp entry 192.168.7.2 56.0.0.1 register
[Huawei-Tunnel0/0/1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]osp
[Huawei]ospf r
[Huawei]ospf router-id 4.4.4.4
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.7.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]q
[Huawei]q
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ospf ne
[Huawei-Tunnel0/0/1]ospf network-type b
[Huawei-Tunnel0/0/1]ospf network-type broadcast
[Huawei-Tunnel0/0/1]
AR5
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 56.0.0.1 24
Jan 4 2023 18:45:08-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 lo0
[Huawei-LoopBack0]ip add162.168.5.1 24
^
Error: Unrecognized command found at '^' position.
[Huawei-LoopBack0]ip add 192.168.5.1 24
[Huawei-LoopBack0]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>nt
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int t
[Huawei]int Tunnel 0/0/1
[Huawei-Tunnel0/0/1]ip add 192.168.7.3 255.255.255.0
[Huawei-Tunnel0/0/1]tu
[Huawei-Tunnel0/0/1]tunnel-protocol g
[Huawei-Tunnel0/0/1]tunnel-protocol gre p
[Huawei-Tunnel0/0/1]tunnel-protocol gre p2mp
[Huawei-Tunnel0/0/1]so
[Huawei-Tunnel0/0/1]source 56.0.0.1
Jan 4 2023 19:12:19-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface Tunnel0/0/1 has entered the UP state.
[Huawei-Tunnel0/0/1]
[Huawei-Tunnel0/0/1]osp
[Huawei-Tunnel0/0/1]ospf n
[Huawei-Tunnel0/0/1]ospf network-type b
[Huawei-Tunnel0/0/1]ospf network-type broadcast
[Huawei-Tunnel0/0/1]nhrp
[Huawei-Tunnel0/0/1]nhrp en
[Huawei-Tunnel0/0/1]nhrp entry m
[Huawei-Tunnel0/0/1]nhrp entry multicast d
[Huawei-Tunnel0/0/1]nhrp entry multicast dynamic
[Huawei-Tunnel0/0/1]nh
[Huawei-Tunnel0/0/1]nhrp n
[Huawei-Tunnel0/0/1]nhrp network-id 100
[Huawei-Tunnel0/0/1]
Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]osp
[Huawei]ospf 1
[Huawei]ospf 1 r
[Huawei]ospf 1 router-id 5.5.5.5
[Huawei-ospf-1]ar
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]net
[Huawei-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.7.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]q
[Huawei-ospf-1]q
[Huawei]int
[Huawei]interface t
[Huawei]interface Tunnel 0/0/1
[Huawei-Tunnel0/0/1]os
[Huawei-Tunnel0/0/1]ospf n
[Huawei-Tunnel0/0/1]ospf network-type b
[Huawei-Tunnel0/0/1]ospf network-type broadcast
[Huawei-Tunnel0/0/1]
AR6
Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 16.0.0.2 24
Jan 4 2023 18:46:43-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
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip add 61.0.0.2 24
Jan 4 2023 18:47:09-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]q
[Huawei]int
[Huawei]interface g2/0/2
[Huawei-GigabitEthernet2/0/2]ip add 26.0.0.2 24
[Huawei-GigabitEthernet2/0/2]
Jan 4 2023 18:48:06-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
IP on the interface GigabitEthernet2/0/2 has entered the UP state.
[Huawei-GigabitEthernet2/0/2]q
[Huawei]int
[Huawei]interface g2/0/1
[Huawei-GigabitEthernet2/0/1]ip add 36.0.0.2 24
[Huawei-GigabitEthernet2/0/1]
Jan 4 2023 18:48:56-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol
IP on the interface GigabitEthernet2/0/1 has entered the UP state.
[Huawei-GigabitEthernet2/0/1]q
[Huawei]int
[Huawei]interface 2/0/0
^
Error: Wrong parameter found at '^' position.
[Huawei]interface g2/0/0
[Huawei-GigabitEthernet2/0/0]ip add 46.0.0.2 24
[Huawei-GigabitEthernet2/0/0]
Jan 4 2023 18:52:14-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[4]:The line protocol
IP on the interface GigabitEthernet2/0/0 has entered the UP state.
[Huawei-GigabitEthernet2/0/0]q
[Huawei]int
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 56.0.0.2 24
[Huawei-GigabitEthernet0/0/2]
Jan 4 2023 18:52:50-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[5]:The line protocol
IP on the interface GigabitEthernet0/0/2 has entered the UP state.
[Huawei-GigabitEthernet0/0/2]int lo0
[Huawei-LoopBack0]ip add 6.6.6.6 24
[Huawei-LoopBack0]
实验完成,开始对结果进行测试