一.实验要求
二.实验材料
AR2240路由器8台
三.实验思路
1.IP配置
2.AS2使用OSPF协议实现区域通
3.配置BGP协议,实现城域网互通
4.在R3,R6上配置反射器,使R4,R7获得路由信息
5.宣告网段
6.配置隧道
四.实验配置
AR1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR1
[AR1]int g 0/0/0
[AR1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
May 12 2024 18:43:46-08:00 AR1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR1-GigabitEthernet0/0/0]int l0
[AR1-LoopBack0]ip add 172.16.0.1 32
[AR1-LoopBack0]int l1
[AR1-LoopBack1]ip add 192.168.1.1 24
[AR1-LoopBack1]q
[AR1]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 12.1.1.1/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.1/32 up up(s)
LoopBack1 192.168.1.1/24 up up(s)
NULL0 unassigned up up(s)
[AR1]q
[AR1]bgp 1
[AR1-bgp]peer 12.1.1.2 as
[AR1-bgp]peer 12.1.1.2 as-number 2
<AR1>dis bgp peer
BGP local router ID : 12.1.1.1
Local AS number : 1
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
12.1.1.2 4 2 22 23 0 00:20:07 Established
0
[AR1]dis bgp routing-table
BGP Local router ID is 12.1.1.1
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 172.16.0.0 12.1.1.2 0 0 2i
*> 172.16.0.1/32 0.0.0.0 0 0 i
*> 172.16.0.8/32 12.1.1.2 0 2 3i
[AR1]int Tunnel 0/0/0
[AR1-Tunnel0/0/0]dis th
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.1 255.255.255.0
tunnel-protocol gre
source 172.16.0.1
destination 172.16.0.8
#
return
[AR1-Tunnel0/0/0]q
[AR1]ip ro
[AR1]ip route-
[AR1]ip route-static 172.16.0.8 10.1.1.2
^
Error:Incomplete command found at '^' position.
[AR1]ip route-static 172.16.0.8 24 10.1.1.2
Info: The destination address and mask of the configured static route mismatched
, and the static route 172.16.0.0/24 was generated.
[AR1]undo ip route-static 172.16.0.8 24 10.1.1.2
Warning: The destination address and the mask do not match, and thus the static
route 172.16.0.0/24 will be deleted. Continue?[Y/N]:y
[AR1]ip -ro
[AR1]ip ro
[AR1]ip route-s
[AR1]ip route-static 192.168.2.0 24 10.1.1.1
Error: The next-hop address is invalid.
[AR1]ip route-static 192.168.2.0 24 10.1.1.2
[AR1]ping -a 172.16.0.1 172.16.0.8
PING 172.16.0.8: 56 data bytes, press CTRL_C to break
Reply from 172.16.0.8: bytes=56 Sequence=1 ttl=251 time=50 ms
Reply from 172.16.0.8: bytes=56 Sequence=2 ttl=251 time=40 ms
Reply from 172.16.0.8: bytes=56 Sequence=3 ttl=251 time=40 ms
Reply from 172.16.0.8: bytes=56 Sequence=4 ttl=251 time=40 ms
Reply from 172.16.0.8: bytes=56 Sequence=5 ttl=251 time=40 ms
--- 172.16.0.8 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/42/50 ms
AR2
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR2
[AR2]int g 0/0/0
[AR2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
May 12 2024 18:45:19-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]int g 0/0/1
[AR2-GigabitEthernet0/0/1]ip add 172.16.1.2 30
May 12 2024 18:45:46-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]int g 0/0/2
[AR2-GigabitEthernet0/0/2]ip add 172.16.1.22 30
May 12 2024 18:46:18-08:00 AR2 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[AR2-GigabitEthernet0/0/2]int l0
[AR2-LoopBack0]ip add 172.16.0.2 32
[AR2-LoopBack0]q
[AR2]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 12.1.1.2/24 up up
GigabitEthernet0/0/1 172.16.1.2/30 up up
GigabitEthernet0/0/2 172.16.1.22/30 up up
LoopBack0 172.16.0.2/32 up up(s)
NULL0 unassigned up up(s)
[AR2]ospf 1 r
[AR2]ospf 1 router-id 2.2.2.2
[AR2-ospf-1]a 0
[AR2-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[AR2]dis ospf peer b
OSPF Process 1 with Router ID 2.2.2.2
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/1 3.3.3.3 Full
0.0.0.0 GigabitEthernet0/0/2 5.5.5.5 Full
----------------------------------------------------------------------------
[AR2]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 14 Routes : 16
OSPF routing table status : <Active>
Destinations : 14 Routes : 16
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.3/32 OSPF 10 1 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.0.4/32 OSPF 10 2 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.0.5/32 OSPF 10 1 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.0.6/32 OSPF 10 2 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.0.7/32 OSPF 10 3 D 172.16.1.1 GigabitEthernet
0/0/1
OSPF 10 3 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.1.4/30 OSPF 10 2 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.1.8/30 OSPF 10 3 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.1.12/30 OSPF 10 3 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.1.16/30 OSPF 10 2 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.3.3/32 OSPF 10 1 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.4.4/32 OSPF 10 2 D 172.16.1.1 GigabitEthernet
0/0/1
172.16.5.5/32 OSPF 10 1 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.6.6/32 OSPF 10 2 D 172.16.1.21 GigabitEthernet
0/0/2
172.16.7.7/32 OSPF 10 3 D 172.16.1.1 GigabitEthernet
0/0/1
OSPF 10 3 D 172.16.1.21 GigabitEthernet
0/0/2
[AR2]bgp 64512
[AR2-bgp]con
[AR2-bgp]confederation id 2
[AR2-bgp]con
[AR2-bgp]confederation pe
[AR2-bgp]confederation peer-as 64513
[AR2-bgp]peer 12.1.1.1 as
[AR2-bgp]peer 12.1.1.1 as-number 1
[AR2-bgp]peer 172.16.1.
May 12 2024 19:42:33-08:00 AR2 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 12.1.1.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, S
tateChangeReason=Up)
[AR2-bgp]peer 172.16.1.21 as
[AR2-bgp]peer 172.16.1.21 as-path-filter
[AR2-bgp]peer 172.16.1.21 as-number 64513
[AR2-bgp]peer 172.16.1.21 con
[AR2-bgp]peer 172.16.1.21 connect-interface
[AR2-bgp]peer 172.16.1.21 con
[AR2-bgp]undo peer 172.16.1.21
[AR2-bgp]dis this
[V200R003C00]
#
bgp 64512
confederation id 2
confederation peer-as 64513
peer 12.1.1.1 as-number 1
#
ipv4-family unicast
undo synchronization
peer 12.1.1.1 enable
#
return
[AR2-bgp]peer 172.16.0.5 as-number 64513
[AR2-bgp]peer 172.16.0.5 con
[AR2-bgp]peer 172.16.0.5 connect-interface l0
[AR2-bgp]peer 172.16.0.5 ne
[AR2-bgp]peer 172.16.0.5 next-hop-l
[AR2-bgp]peer 172.16.0.5 next-hop-local
[AR2-bgp]peer 172.16.0.3 as 64512
[AR2-bgp]peer 172.16.0.3 con
[AR2-bgp]peer 172.16.0.3 connect-interface l0
[AR2-bgp]peer 172.16.0.3 n
[AR2-bgp]peer 172.16.0.3 next-hop-l
[AR2-bgp]peer 172.16.0.3 next-hop-local
<AR2>dis bgp peer
BGP local router ID : 12.1.1.2
Local AS number : 64512
Total number of peers : 3 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
12.1.1.1 4 1 21 21 0 00:19:42 Established
0
172.16.0.3 4 64512 14 17 0 00:12:22 Established
0
172.16.0.5 4 64513 1 0 0 00:05:55 Active
0
<AR2>sys
Enter system view, return user view with Ctrl+Z.
[AR2]bgp 64512
[AR2-bgp]dis this
[V200R003C00]
#
bgp 64512
confederation id 2
confederation peer-as 64513
peer 12.1.1.1 as-number 1
peer 172.16.0.3 as-number 64512
peer 172.16.0.3 connect-interface LoopBack0
peer 172.16.0.5 as-number 64513
peer 172.16.0.5 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 12.1.1.1 enable
peer 172.16.0.3 enable
peer 172.16.0.3 next-hop-local
peer 172.16.0.5 enable
peer 172.16.0.5 next-hop-local
#
return
[AR2-bgp]undo peer 172.16.0.5
[AR2-bgp]dis this
[V200R003C00]
#
bgp 64512
confederation id 2
confederation peer-as 64513
peer 12.1.1.1 as-number 1
peer 172.16.0.3 as-number 64512
peer 172.16.0.3 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
peer 12.1.1.1 enable
peer 172.16.0.3 enable
peer 172.16.0.3 next-hop-local
#
return
[AR2-bgp]peer 172.16.1.21 as 64513
[AR2-bgp]peer 172.16.1.21 n
[AR2-bgp]peer 172.16.1.21 next-hop-l
[AR2-bgp]peer 172.16.1.21 next-hop-local
[AR2-bgp]q
[AR2]
May 12 2024 20:05:56-08:00 AR2 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 172.16.1.21 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)
[AR2]dis bgp peer
BGP local router ID : 12.1.1.2
Local AS number : 64512
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
12.1.1.1 4 1 25 25 0 00:23:42 Established
0
172.16.0.3 4 64512 18 21 0 00:16:22 Established
0
172.16.1.21 4 64513 2 2 0 00:00:18 Established
0
AR3
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR3
[AR3]int g 0/0/0
[AR3-GigabitEthernet0/0/0]ip add 172.16.1.1 30
[AR3-GigabitEthernet0/0/0]
May 12 2024 18:47:33-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 g 0/0/1
[AR3-GigabitEthernet0/0/1]ip add 172.16.1.5 30
May 12 2024 18:48:00-08:00 AR3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR3-GigabitEthernet0/0/1]int l0
[AR3-LoopBack0]ip add 172.16.0.3 32
[AR3-LoopBack0]int l1
[AR3-LoopBack1]ip add 172.16.3.3 24
[AR3-LoopBack1]q
[AR3]q
<AR3>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.1/30 up up
GigabitEthernet0/0/1 172.16.1.5/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.3/32 up up(s)
LoopBack1 172.16.3.3/24 up up(s)
NULL0 unassigned up up(s)
[AR3]ospf 1 r
[AR3]ospf 1 router-id 3.3.3.3
[AR3-ospf-1]a 0
[AR3-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
<AR3>dis ospf peer b
OSPF Process 1 with Router ID 3.3.3.3
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 2.2.2.2 Full
0.0.0.0 GigabitEthernet0/0/1 4.4.4.4 Full
----------------------------------------------------------------------------
<AR3>dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 13 Routes : 15
OSPF routing table status : <Active>
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.2/32 OSPF 10 1 D 172.16.1.2 GigabitEthernet
0/0/0
172.16.0.4/32 OSPF 10 1 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.0.5/32 OSPF 10 2 D 172.16.1.2 GigabitEthernet
0/0/0
172.16.0.6/32 OSPF 10 3 D 172.16.1.2 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.0.7/32 OSPF 10 2 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.1.8/30 OSPF 10 2 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.1.12/30 OSPF 10 3 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.1.16/30 OSPF 10 3 D 172.16.1.2 GigabitEthernet
0/0/0
172.16.1.20/30 OSPF 10 2 D 172.16.1.2 GigabitEthernet
0/0/0
172.16.4.4/32 OSPF 10 1 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.5.5/32 OSPF 10 2 D 172.16.1.2 GigabitEthernet
0/0/0
172.16.6.6/32 OSPF 10 3 D 172.16.1.2 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.6 GigabitEthernet
0/0/1
172.16.7.7/32 OSPF 10 2 D 172.16.1.6 GigabitEthernet
0/0/1
[AR3]bgp 64512
[AR3-bgp]con
[AR3-bgp]confederation id 2
[AR3-bgp]peer 172.16.0.2 as 64512
[AR3-bgp]peer 172.16.0.2 con
[AR3-bgp]peer 172.16.0.2 connect-interface l0
[AR3-bgp]peer 172.16.0.4
May 12 2024 19:49:53-08:00 AR3 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 172.16.0.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR3-bgp]peer 172.16.0.4 as 64512
[AR3-bgp]peer 172.16.0.4 con
[AR3-bgp]peer 172.16.0.4 connect-interface l0
<AR3>dis bgp peer
BGP local router ID : 172.16.1.1
Local AS number : 64512
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.2 4 64512 15 15 0 00:13:06 Established
0
172.16.0.4 4 64512 12 14 0 00:10:51 Established
0
[AR3]bgp 64512
[AR3-bgp]peer 172.16.0.4 re
[AR3-bgp]peer 172.16.0.4 reflect-client
AR4
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR4
[AR4]int g 0/0/0
[AR4-GigabitEthernet0/0/0]ip add 172.16.1.6 30
May 12 2024 18:50:09-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR4-GigabitEthernet0/0/0]
[AR4-GigabitEthernet0/0/0]int g 0/0/1
[AR4-GigabitEthernet0/0/1]ip add 172.16.1.9 30
May 12 2024 18:50:39-08:00 AR4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR4-GigabitEthernet0/0/1]int l0
[AR4-LoopBack0]ip add 172.16.0.4 32
[AR4-LoopBack0]int l1
[AR4-LoopBack1]ip add 172.16.4.4 24
[AR4-LoopBack1]q
[AR4]q
<AR4>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.6/30 up up
GigabitEthernet0/0/1 172.16.1.9/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.4/32 up up(s)
LoopBack1 172.16.4.4/24 up up(s)
NULL0 unassigned up up(s)
[AR4]ospf 1 r
[AR4]ospf 1 router-id 4.4.4.4
[AR4-ospf-1]a 0
[AR4-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[AR4]dis ospf peer b
OSPF Process 1 with Router ID 4.4.4.4
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 3.3.3.3 Full
0.0.0.0 GigabitEthernet0/0/1 7.7.7.7 Full
----------------------------------------------------------------------------
[AR4]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 13 Routes : 15
OSPF routing table status : <Active>
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.2/32 OSPF 10 2 D 172.16.1.5 GigabitEthernet
0/0/0
172.16.0.3/32 OSPF 10 1 D 172.16.1.5 GigabitEthernet
0/0/0
172.16.0.5/32 OSPF 10 3 D 172.16.1.5 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.0.6/32 OSPF 10 2 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.0.7/32 OSPF 10 1 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.1.0/30 OSPF 10 2 D 172.16.1.5 GigabitEthernet
0/0/0
172.16.1.12/30 OSPF 10 2 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.1.16/30 OSPF 10 3 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.1.20/30 OSPF 10 3 D 172.16.1.5 GigabitEthernet
0/0/0
172.16.3.3/32 OSPF 10 1 D 172.16.1.5 GigabitEthernet
0/0/0
172.16.5.5/32 OSPF 10 3 D 172.16.1.5 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.6.6/32 OSPF 10 2 D 172.16.1.10 GigabitEthernet
0/0/1
172.16.7.7/32 OSPF 10 1 D 172.16.1.10 GigabitEthernet
0/0/1
[AR4]bgp 64512
[AR4-bgp]con
[AR4-bgp]confederation id 2
[AR4-bgp]peer 172.16.0.4 as 64512
Warning: Local interface is already configured with this address.
[AR4-bgp]undo peer 172.16.0.4
[AR4-bgp]peer 172.16.0.3 as 64512
[AR4-bgp]peer 172.16.0.3 con
[AR4-bgp]peer 172.16.0.3 connect-interface l0
<AR4>dis bgp peer
BGP local router ID : 172.16.1.6
Local AS number : 64512
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.3 4 64512 13 13 0 00:11:09 Established
0
[AR4]dis bgp routing-table
BGP Local router ID is 172.16.1.6
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 172.16.0.0 172.16.0.2 0 100 0 i
AR5
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR5
[AR5]int g 0/0/0
[AR5-GigabitEthernet0/0/0]ip add 172.16.1.21 30
[AR5-GigabitEthernet0/0/0]
May 12 2024 18:53:04-08:00 AR5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR5-GigabitEthernet0/0/0]int g 0/0/1
[AR5-GigabitEthernet0/0/1]ip add 172.16.1.17 30
May 12 2024 18:53:28-08:00 AR5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR5-GigabitEthernet0/0/1]int l0
[AR5-LoopBack0]ip add 172.16.0.5 32
[AR5-LoopBack0]int l1
[AR5-LoopBack1]ip add 172.16.5.5 24
[AR5-LoopBack1]q
[AR5]q
<AR5>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.21/30 up up
GigabitEthernet0/0/1 172.16.1.17/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.5/32 up up(s)
LoopBack1 172.16.5.5/24 up up(s)
NULL0 unassigned up up(s)
[AR5]ospf 1 ro
[AR5]ospf 1 router-id 5.5.5.5
[AR5-ospf-1]a 0
[AR5-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[AR5]dis ospf peer b
OSPF Process 1 with Router ID 5.5.5.5
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 2.2.2.2 Full
0.0.0.0 GigabitEthernet0/0/1 6.6.6.6 Full
----------------------------------------------------------------------------
[AR5]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 13 Routes : 15
OSPF routing table status : <Active>
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.2/32 OSPF 10 1 D 172.16.1.22 GigabitEthernet
0/0/0
172.16.0.3/32 OSPF 10 2 D 172.16.1.22 GigabitEthernet
0/0/0
172.16.0.4/32 OSPF 10 3 D 172.16.1.22 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.0.6/32 OSPF 10 1 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.0.7/32 OSPF 10 2 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.1.0/30 OSPF 10 2 D 172.16.1.22 GigabitEthernet
0/0/0
172.16.1.4/30 OSPF 10 3 D 172.16.1.22 GigabitEthernet
0/0/0
172.16.1.8/30 OSPF 10 3 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.1.12/30 OSPF 10 2 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.3.3/32 OSPF 10 2 D 172.16.1.22 GigabitEthernet
0/0/0
172.16.4.4/32 OSPF 10 3 D 172.16.1.22 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.6.6/32 OSPF 10 1 D 172.16.1.18 GigabitEthernet
0/0/1
172.16.7.7/32 OSPF 10 2 D 172.16.1.18 GigabitEthernet
0/0/1
[AR5]bgp 64513
[AR5-bgp]con
[AR5-bgp]confederation id 2
[AR5-bgp]con
[AR5-bgp]confederation peer
[AR5-bgp]confederation peer-as 64512
[AR5-bgp]peer 172.16.0.2 as 64512
[AR5-bgp]peer 172.16.0.2 con
[AR5-bgp]peer 172.16.0.2 connect-interface l0
[AR5-bgp]peer 172.16.0.2 ne
^
Error:Ambiguous command found at '^' position.
[AR5-bgp]peer 172.16.0.2 ne
[AR5-bgp]peer 172.16.0.2 next-hop-lo
[AR5-bgp]peer 172.16.0.2 next-hop-local
[AR5-bgp]undo peer 172.16.0.2
[AR5-bgp]dis this
[V200R003C00]
#
bgp 64513
confederation id 2
confederation peer-as 64512
#
ipv4-family unicast
undo synchronization
#
return
[AR5-bgp]peer 172.16.1.22 as 64512
[AR5-bgp]peer 172.16.1.22 con
[AR5-bgp]peer 172.16.1.22 n
[AR5-bgp]peer 172.16.1.22 next-hop-lo
[AR5-bgp]peer 172.16.1.22 next-hop-local
[AR5-bgp]peer 172.16.0.6 as 64513
[AR5-bgp]peer 172.16.0.6 con
[AR5-bgp]peer 172.16.0.6 connect-interface l0
[AR5-bgp]peer 172.16.0.6 ne
[AR5-bgp]peer 172.16.0.6 next-hop-lo
[AR5-bgp]peer 172.16.0.6 next-hop-local
<AR5>dis bgp peer
BGP local router ID : 172.16.1.21
Local AS number : 64513
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.6 4 64513 5 7 0 00:03:01 Established
0
172.16.1.22 4 64512 0 0 0 00:06:24 Active
0
AR6
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR6
[AR6]int g 0/0/0
[AR6-GigabitEthernet0/0/0]ip add 172.16.1.18 30
[AR6-GigabitEthernet0/0/0]
May 12 2024 18:54:52-08:00 AR6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR6-GigabitEthernet0/0/0]int g 0/0/1
[AR6-GigabitEthernet0/0/1]ip add 172.16.1.13 30
May 12 2024 18:55:27-08:00 AR6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR6-GigabitEthernet0/0/1]int l0
[AR6-LoopBack0]ip add 172.16.0.6 32
[AR6-LoopBack0]int l1
[AR6-LoopBack1]ip add 172.16.6.6 24
[AR6-LoopBack1]q
[AR6]q
<AR6>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.18/30 up up
GigabitEthernet0/0/1 172.16.1.13/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.6/32 up up(s)
LoopBack1 172.16.6.6/24 up up(s)
NULL0 unassigned up up(s)
[AR6]ospf 1 ro
[AR6]ospf 1 router-id 6.6.6.6
[AR6-ospf-1]a 0
[AR6-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[AR6]dis ospf peer b
OSPF Process 1 with Router ID 6.6.6.6
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 5.5.5.5 Full
0.0.0.0 GigabitEthernet0/0/1 7.7.7.7 Full
----------------------------------------------------------------------------
[AR6]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 13 Routes : 15
OSPF routing table status : <Active>
Destinations : 13 Routes : 15
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.2/32 OSPF 10 2 D 172.16.1.17 GigabitEthernet
0/0/0
172.16.0.3/32 OSPF 10 3 D 172.16.1.17 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.0.4/32 OSPF 10 2 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.0.5/32 OSPF 10 1 D 172.16.1.17 GigabitEthernet
0/0/0
172.16.0.7/32 OSPF 10 1 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.1.0/30 OSPF 10 3 D 172.16.1.17 GigabitEthernet
0/0/0
172.16.1.4/30 OSPF 10 3 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.1.8/30 OSPF 10 2 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.1.20/30 OSPF 10 2 D 172.16.1.17 GigabitEthernet
0/0/0
172.16.3.3/32 OSPF 10 3 D 172.16.1.17 GigabitEthernet
0/0/0
OSPF 10 3 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.4.4/32 OSPF 10 2 D 172.16.1.14 GigabitEthernet
0/0/1
172.16.5.5/32 OSPF 10 1 D 172.16.1.17 GigabitEthernet
0/0/0
172.16.7.7/32 OSPF 10 1 D 172.16.1.14 GigabitEthernet
0/0/1
[AR6]bgp 64513
[AR6-bgp]con
[AR6-bgp]confederation
^
Error:Incomplete command found at '^' position.
[AR6-bgp]confederation id 2
[AR6-bgp]peer 172.16.0.5 as
[AR6-bgp]peer 172.16.0.5 as-number 64513
[AR6-bgp]peer 172.16.0.5 con
[AR6-bgp]peer 172.16.0.5 connect-interface l0
[AR6-bgp]
May 12 2024 20:00:29-08:00 AR6 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 172.16.0.5 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public,
StateChangeReason=Up)
[AR6-bgp]peer 172.16.0.7 as
[AR6-bgp]peer 172.16.0.7 as-number 64513
[AR6-bgp]peer 172.16.0.7 con
[AR6-bgp]peer 172.16.0.7 connect-interface l0
<AR6>dis bgp peer
BGP local router ID : 172.16.1.18
Local AS number : 64513
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.5 4 64513 5 5 0 00:03:18 Established
0
172.16.0.7 4 64513 3 4 0 00:01:31 Established
0
[AR6]bgp 64513
[AR6-bgp]peer 172.16.0.7 re
[AR6-bgp]peer 172.16.0.7 reflect-client
[AR6]dis bgp routing-table
BGP Local router ID is 172.16.1.18
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 2
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 172.16.0.0 172.16.0.7 0 100 0 i
* i 172.16.1.22 0 100 0 (64512)i
AR7
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR7
[AR7]int g 0/0/0
[AR7-GigabitEthernet0/0/0]ip add 172.16.1.14 30
May 12 2024 18:58:41-08:00 AR7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR7-GigabitEthernet0/0/0]int g 0/0/1
[AR7-GigabitEthernet0/0/1]ip add 172.16.1.10 30
May 12 2024 18:59:07-08:00 AR7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[AR7-GigabitEthernet0/0/1]int l0
[AR7-LoopBack0]ip add 172.16.0.7 32
[AR7-LoopBack0]int l1
[AR7-LoopBack1]ip add 172.16.7.7 24
[AR7-LoopBack1]int g 0/0/2
[AR7-GigabitEthernet0/0/2]ip add 34.1.1.7 24
May 12 2024 19:02:16-08:00 AR7 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[AR7-GigabitEthernet0/0/2]q
[AR7]q
<AR7>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 6
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 6
The number of interface that is DOWN in Protocol is 0
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.14/30 up up
GigabitEthernet0/0/1 172.16.1.10/30 up up
GigabitEthernet0/0/2 34.1.1.7/24 up up
LoopBack0 172.16.0.7/32 up up(s)
LoopBack1 172.16.7.7/24 up up(s)
NULL0 unassigned up up(s)
<AR7>save
[AR7]ospf 1 r
[AR7]ospf 1 router-id 7.7.7.7
[AR7-ospf-1]a 0
[AR7-ospf-1-area-0.0.0.0]net 172.16.0.0 0.0.255.255
[AR7]dis ospf peer b
OSPF Process 1 with Router ID 7.7.7.7
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 GigabitEthernet0/0/0 6.6.6.6 Full
0.0.0.0 GigabitEthernet0/0/1 4.4.4.4 Full
----------------------------------------------------------------------------
[AR7]dis ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
Destinations : 13 Routes : 14
OSPF routing table status : <Active>
Destinations : 13 Routes : 14
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.2/32 OSPF 10 3 D 172.16.1.9 GigabitEthernet
0/0/1
OSPF 10 3 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.0.3/32 OSPF 10 2 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.0.4/32 OSPF 10 1 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.0.5/32 OSPF 10 2 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.0.6/32 OSPF 10 1 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.1.0/30 OSPF 10 3 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.1.4/30 OSPF 10 2 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.1.16/30 OSPF 10 2 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.1.20/30 OSPF 10 3 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.3.3/32 OSPF 10 2 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.4.4/32 OSPF 10 1 D 172.16.1.9 GigabitEthernet
0/0/1
172.16.5.5/32 OSPF 10 2 D 172.16.1.13 GigabitEthernet
0/0/0
172.16.6.6/32 OSPF 10 1 D 172.16.1.13 GigabitEthernet
0/0/0
[AR7]bgp 64513
[AR7-bgp]con
[AR7-bgp]confederation id 2
[AR7-bgp]peer 172.16.0.6 as
[AR7-bgp]peer 172.16.0.6 as-number 64513
[AR7-bgp]peer 172.16.0.6 con
[AR7-bgp]peer 172.16.0.6 connect-interface l0
<AR7>dis bgp peer
BGP local router ID : 172.16.1.14
Local AS number : 64513
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.6 4 64513 3 3 0 00:01:43 Established
0
[AR7]bgp 64513
[AR7-bgp]peer 172.16.0.8 as 1
[AR7-bgp]dis bgp peer
BGP local router ID : 172.16.1.14
Local AS number : 64513
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.6 4 64513 14 14 0 00:12:29 Established
0
172.16.0.8 4 1 0 0 0 00:01:01 Idle
0
[AR7-bgp]undo 172.16.0.8
^
Error: Unrecognized command found at '^' position.
[AR7-bgp]undo peer 172.16.0.8
[AR7-bgp]peer 172.16.0.8 as 3
[AR7-bgp]dis bgp peer
BGP local router ID : 172.16.1.14
Local AS number : 64513
Total number of peers : 2 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
172.16.0.6 4 64513 16 16 0 00:14:02 Established
0
172.16.0.8 4 3 0 0 0 00:00:31 Idle
0
[AR7-bgp]dis this
[V200R003C00]
#
bgp 64513
confederation id 2
peer 172.16.0.6 as-number 64513
peer 172.16.0.6 connect-interface LoopBack0
peer 172.16.0.8 as-number 3
#
ipv4-family unicast
undo synchronization
peer 172.16.0.6 enable
peer 172.16.0.8 enable
#
return
[AR7-bgp]undo 172.16.0.8
^
Error: Unrecognized command found at '^' position.
[AR7-bgp]undo peer 172.16.0.8
[AR7-bgp]peer 34.1.1.7 as 2
Warning: Local interface is already configured with this address.
Error: The peer AS number and Confederation ID conflict.
[AR7-bgp]undo peer 34.1.1.7 as 2
^
Error:Incomplete command found at '^' position.
[AR7-bgp]undo peer 34.1.1.7
Error: The peer session does not exist.
[AR7-bgp]peer 34.1.1.8 as 3
[AR7-bgp]
May 12 2024 20:19:45-08:00 AR7 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 34.1.1.8 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, S
tateChangeReason=Up)
[AR7-bgp]dis bgp peer
BGP local router ID : 172.16.1.14
Local AS number : 64513
Total number of peers : 2 Peers in established state : 2
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
34.1.1.8 4 3 4 6 0 00:02:36 Established
0
172.16.0.6 4 64513 22 22 0 00:20:04 Established
0
[AR7-bgp]peer 172.16.0.6 next-hop-local
AR8
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname AR8
[AR8]int g 0/0/0
[AR8-GigabitEthernet0/0/0]ip add 34.1.1.8 24
[AR8-GigabitEthernet0/0/0]
May 12 2024 19:07:07-08:00 AR8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[AR8-GigabitEthernet0/0/0]int l0
[AR8-LoopBack0]ip add 172.16.0.8 32
[AR8-LoopBack0]int l1
[AR8-LoopBack1]ip add 192.168.2.0 24
Error: The specified IP address is invalid.
[AR8-LoopBack1]ip add 192.168.2.8 24
[AR8-LoopBack1]q
[AR8]q
<AR8>dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 34.1.1.8/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.8/32 up up(s)
LoopBack1 192.168.2.8/24 up up(s)
NULL0 unassigned up up(s)
[AR8]bgp 3
[AR8-bgp]peer 172.16.0.7 as 2
[AR8-bgp]undo peer 172.16.0.7
[AR8-bgp]peer 34.1.1.7 as 2
[AR8-bgp]
May 12 2024 20:19:44-08:00 AR8 %%01BGP/3/STATE_CHG_UPDOWN(l)[0]:The status of th
e peer 34.1.1.7 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, S
tateChangeReason=Up)
[AR8-bgp]dis bgp peer
BGP local router ID : 34.1.1.8
Local AS number : 3
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
34.1.1.7 4 2 4 4 0 00:02:49 Established
0
[AR8]int t
[AR8]int Tunnel 0/0/0
[AR8-Tunnel0/0/0]ip add 10.1.1.2 24
[AR8-Tunnel0/0/0]tu
[AR8-Tunnel0/0/0]tunnel-protocol gr
[AR8-Tunnel0/0/0]tunnel-protocol gre
[AR8-Tunnel0/0/0]so
[AR8-Tunnel0/0/0]source 172.16.0.8
[AR8-Tunnel0/0/0]de
[AR8-Tunnel0/0/0]description 172.16.0.1
[AR8-Tunnel0/0/0]undo des
[AR8-Tunnel0/0/0]undo destination
[AR8-Tunnel0/0/0]undo description 172.16.0.1
^
Error:Too many parameters found at '^' position.
[AR8-Tunnel0/0/0]undo description
[AR8-Tunnel0/0/0]des
[AR8-Tunnel0/0/0]destination 172.16.0.1
May 12 2024 21:17:01-08:00 AR8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[AR8-Tunnel0/0/0]
[AR8-Tunnel0/0/0]q
[AR8]dis ip int b
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 34.1.1.8/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.0.8/32 up up(s)
LoopBack1 192.168.2.8/24 up up(s)
NULL0 unassigned up up(s)
Tunnel0/0/0 10.1.1.2/24 up up
[AR8]int tu
[AR8]int Tunnel 0/0/0
[AR8-Tunnel0/0/0]dis this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.2 255.255.255.0
tunnel-protocol gre
source 172.16.0.8
destination 172.16.0.1
#
return
[AR8-Tunnel0/0/0]q
[AR8]ip ro
[AR8]ip route-s
[AR8]ip route-static 192.168.1.0 24 10.1.1.1
五.实验结论
要细心配置,否则配错了卡死人