路由反射器

组网介绍

R1、R2、R3、R4都属于AS64511,其连接方式、互联接口地址如图所示。每台设备均创建Loopback0接口,IP地址为10.0.x.x/32,其中x为设备编号。R1、R2上的Loopback1地址分别为10.1.1.1/24、10.2.2.2/24,用于模拟用户网段。

所有设备都使用Loopback0地址作为BGP Router ID,R1与R2、R2与R3、R3与R4、R4与R2之间基于直连接口建立IBGP对等体关系,其中R1为R2的路由反射器客户端,R2为R3的路由反射器客户端,R3为R4的路由反射器客户端。

任务思路

  1. 设备基础IP地址配置。
  2. 配置AS内的OSPF,在互联接口、Loopback0接口上激活OSPF。
  3. 配置AS内基于直连接口建立IBGP对等体关系。
  4. 配置路由反射器,将R1配置为R2的客户端、R2配置为R3的客户端、R3配置为R4的客户端。
  5. 在R2上将Loopback1接口路由发布进BGP,观察Originator_ID属性如何实现路由防环。
  6. 在R1上将Loopback1接口路由发布进BGP,观察Cluster_List属性如何实现路由防环。

AR9

The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR9
[AR9]int lo0
[AR9-LoopBack0]ip add 10.0.1.1 32
[AR9-LoopBack0]int lo1
[AR9-LoopBack1]ip add 1024
[AR9-LoopBack1]int g0/0/0
[AR9-GigabitEthernet0/0/0]ip add 10.0.12.1 24
Jul 25 2024 19:28:51-08:00 AR9 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR9]ospf 1 rou 10.0.1.1
[AR9-ospf-1]area 0
[AR9-ospf-1-area-0.0.0.0]net 10.0.1.1 0.0.0.0
Jul 25 2024 19:38:44-08:00 AR9 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.12.0.10, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR9-ospf-1-area-0.0.0.0]
Jul 25 2024 19:38:49-08:00 AR9 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.12.0.10, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[AR9-ospf-1-area-0.0.0.0]
Jul 25 2024 19:38:49-08:00 AR9 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.12.0.10, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[AR9-ospf-1-area-0.0.0.0]
Jul 25 2024 19:38:49-08:00 AR9 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.12.0.10, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[AR9-ospf-1-area-0.0.0.0]
Jul 25 2024 19:38:49-08:00 AR9 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.12.0.10, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR9-ospf-1-area-0.0.0.0]q
[AR9-ospf-1]q
[AR9]bgp 64511
[AR9-bgp]rou	
[AR9-bgp]route-select
[AR9-bgp]router-id 10.0.1.1
[AR9-bgp]peer 10.0.12.2 as 65411
[AR9-bgp]dis th
[V200R003C00]
#
bgp 64511
 router-id 10.0.1.1
 peer 10.0.12.2 as-number 65411 
 #
 ipv4-family unicast
  undo synchronization
  peer 10.0.12.2 enable
#
return
[AR9-bgp]undo peer 10.0.12.2 
[AR9-bgp]peer 10.0.12.2 as-number 64511
[AR9-bgp]
Jul 25 2024 19:49:47-08:00 AR9 %%01BGP/3/STATE_CHG_UPDOWN(l)[5]:The status of th
e peer 10.0.12.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public, 
StateChangeReason=Up)  
[AR9-bgp]
  Please check whether system data has been changed, and save data in time
  Configuration console time out, please press any key to log on
<AR9>sys
Enter system view, return user view with Ctrl+Z.
[AR9]bgp 64511
[AR9-bgp]net 10.1.1.0 24
[AR9-bgp]q
[AR9]display bgp routing-table 10.1.1.0 24
 BGP local router ID : 10.0.1.1
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.0/24:
 Network route. 
 From: 0.0.0.0 (0.0.0.0)
 Route Duration: 00h00m11s  
 Direct Out-interface: LoopBack1
 Original nexthop: 10.1.1.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 0
 Advertised to such 1 peers:
    10.0.12.2
[AR9]q
<AR9>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

AR10

The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR10
[AR10]int lo0
[AR10-LoopBack0]ip add 10.0.2.2 32
[AR10-LoopBack0]int lo1
[AR10-LoopBack1]ip add 10.1
[AR10-LoopBack1]int g0/0/0
[AR10-GigabitEthernet0/0/0]ip add 10.0.12.2 24
Jul 25 2024 19:30:00-08:00 AR10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol I
P on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR10-GigabitEthernet0/0/0]int g0/0/1
[AR10-GigabitEthernet0/0/1]ip add 10.0.24
[AR10-GigabitEthernet0/0/1]
Jul 25 2024 19:30:19-08:00 AR10 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface GigabitEthernet0/0/1 has entered the UP state. 
[AR10-GigabitEthernet0/0/1]int g0/0/2
[AR10-GigabitEthernet0/0/2]ip add 10.0.23
[AR10-GigabitEthernet0/0/2]
Jul 25 2024 19:30:33-08:00 AR10 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol I
P on the interface GigabitEthernet0/0/2 has entered the UP state. 
[AR10]ospf 1 rou 10.0.2.2
[AR10-ospf-1]area 0
[AR10-ospf-1-area-0.0.0.0]net 10.0.2.2 0.0.0.0
[AR10-ospf-1-area-0.0.0.0]net 10.0.1
[AR10-ospf-1-area-0.0.0.0]net 10.0.12
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.12.2 0.0.0.0
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.12.2 0.0.0.0
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.12.2 0.0.0.0
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.12.2 0.0.0.0
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.12.2 0.0.0.
Jul 25 2024 19:38:49-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=1.12.0.10, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR10-ospf-1-area-0.0.0.0]net 10.0.1.2 0.0.0.0
[AR10-ospf-1-area-0.0.0.0]net 10.0.24.2 0.0.0.0
[AR10-ospf-1-area-0.0.0.0]net 10.0.23.2 0.0.0.0
[AR10-ospf-1-area-0.0.0.0]dis th
[V200R003C00]
#
 area 0.0.0.0 
  network 10.0.1.2 0.0.0.0 
  network 10.0.2.2 0.0.0.0 
  network 10.0.12.2 0.0.0.0 
  network 10.0.23.2 0.0.0.0 
  network 10.0.24.2 0.0.0.0 
#
return
[AR10-ospf-1-area-0.0.0.0]undo network 10.0.1.2 0.0.0.0 
[AR10-ospf-1-area-0.0.0.0]
[AR10-ospf-1-area-0.0.0.0]
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:15-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.23.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:16-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.23.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:16-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.23.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:16-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.23.0.10, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:16-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=3.23.0.10, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:08-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.24.0.10, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:09-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.24.0.10, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:09-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.24.0.10, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:09-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.24.0.10, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[AR10-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:09-08:00 AR10 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.24.0.10, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR10-ospf-1-area-0.0.0.0]
[AR10-ospf-1-area-0.0.0.0]q
[AR10-ospf-1]q
[AR10]dis ospf peer b	
[AR10]dis ospf peer brief 
	 OSPF Process 1 with Router ID 10.0.2.2
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             10.0.1.1         Full        
 0.0.0.0          GigabitEthernet0/0/1             10.0.4.4         Full        
 0.0.0.0          GigabitEthernet0/0/2             10.0.3.3         Full        
 ----------------------------------------------------------------------------
[AR10]bgp 64511
[AR10-bgp]router 10.0.2.2
[AR10-bgp]peer 10.0.12.1 as 64511
[AR10-bgp]peer 10.0.23.3 as 64511
[AR10-bgp]peer 10.0.34.4 as 64511
[AR10-bgp]
Jul 25 2024 19:46:07-08:00 AR10 %%01BGP/3/STATE_CHG_UPDOWN(l)[16]:The status of 
the peer 10.0.23.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR10-bgp]q
Jul 25 2024 19:47:56-08:00 AR10 %%01BGP/3/STATE_CHG_UPDOWN(l)[17]:The status of 
the peer 10.0.24.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
Jul 25 2024 19:49:47-08:00 AR10 %%01BGP/3/STATE_CHG_UPDOWN(l)[18]:The status of 
the peer 10.0.12.1 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR10]dis bgp peer
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Total number of peers : 3		  Peers in established state : 3
  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State Pre
fRcv
  10.0.12.1       4       64511        2        3     0 00:00:07 Established    
   0
  10.0.23.3       4       64511        5        6     0 00:03:48 Established    
   0
  10.0.24.4       4       64511        3        5     0 00:01:58 Established    
   0
[AR10]bgp 64511
[AR10-bgp]peer 10.0.12.1 reflect-client 
[AR10-bgp]q
[AR10]acl 
[AR10-acl-basic-2000]rule 5 permit
[AR10-acl-basic-2000]q
[AR10]rou	
[AR10]route
[AR10]route-policy bgp deny node 10
Info: New Sequence of this List.
[AR10-route-policy]if	
[AR10-route-policy]if-match acl 2000
[AR10-route-policy]q
[AR10]bgp 64511	
[AR10-bgp]peer 10.0.24.4 route-policy bgp export 
[AR10-bgp]net 10.2.2.0 24
[AR10-bgp]q
[AR10]display bgp routing-table 10.2.2.0 24
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.2.2.0/24:
 Network route. 
 From: 0.0.0.0 (0.0.0.0)
 Route Duration: 00h00m16s  
 Direct Out-interface: LoopBack1
 Original nexthop: 10.2.2.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 0
 Advertised to such 2 peers:
    10.0.23.3
    10.0.12.1
[AR10]display bgp routing-table 10.2.2.0 24
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.2.2.0/24:
 Network route. 
 From: 0.0.0.0 (0.0.0.0)
 Route Duration: 00h01m06s  
 Direct Out-interface: LoopBack1
 Original nexthop: 10.2.2.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 0
 Advertised to such 2 peers:
    10.0.23.3
    10.0.12.1
[AR10]display bgp peer 10.0.24.4 verbose 
	BGP Peer is 10.0.24.4,  remote AS 64511  
	Type: IBGP link
	BGP version 4, Remote router ID 10.0.4.4
	Update-group ID: 2  
	BGP current state: Established, Up for 00h06m04s 
	BGP current event: KATimerExpired
	BGP last state: OpenConfirm
	BGP Peer Up count: 1
	Received total routes: 0
	Received active routes total: 0
	Advertised total routes: 0
	Port:  Local - 179	Remote - 49606
	Configured: Connect-retry Time: 32 sec
	Configured: Active Hold Time: 180 sec	Keepalive Time:60 sec
	Received  : Active Hold Time: 180 sec
	Negotiated: Active Hold Time: 180 sec	Keepalive Time:60 sec
	Peer optional capabilities:
	Peer supports bgp multi-protocol extension
	Peer supports bgp route refresh capability
	Peer supports bgp 4-byte-as capability
	Address family IPv4 Unicast: advertised and received
 Received: Total 11 messages
		 Update messages 		3 
		 Open messages 			1 
		 KeepAlive messages 		7 
		 Notification messages  	0 
		 Refresh messages 		0
 Sent: Total 12 messages
		 Update messages 		2 
		 Open messages 			3 
		 KeepAlive messages 		7 
		 Notification messages  	0 
		 Refresh messages 		0
 Authentication type configured: None
 Last keepalive received: 2024/07/25 19:53:56 UTC-08:00    
 Last keepalive sent    : 2024/07/25 19:53:56 UTC-08:00    
 Last update    received: 2024/07/25 19:52:57 UTC-08:00    
 Last update    sent    : 2024/07/25 19:52:57 UTC-08:00    
 Minimum route advertisement interval is 15 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Peer Preferred Value: 0
 Routing policy configured:
 No import update filter list
 No export update filter list
 No import prefix list
 No export prefix list
 No import route policy 
 Export route policy is: bgp
 No import distribute policy 
 No export distribute policy 
<AR10>refresh bgp 10.0.24.4 import
<AR10>display bgp peer 10.0.24.4 verbose | in Update
	Update-group ID: 2
	BGP current event: RecvUpdate
		 Update messages 		4
		 Update messages 		2
<AR10>display bgp routing-table 10.2.2.0 24
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.2.2.0/24:
 Network route. 
 From: 0.0.0.0 (0.0.0.0)
 Route Duration: 00h02m14s  
 Direct Out-interface: LoopBack1
 Original nexthop: 10.2.2.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 0
 Advertised to such 2 peers:
    10.0.23.3
    10.0.12.1
[AR10]bgp 64511
[AR10-bgp]undo net 10.2.2.0 24
[AR10-bgp]q
[AR10]display bgp routing-table 10.1.1.0 24
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.0/24:
 RR-client route.
 From: 10.0.12.1 (10.0.1.1)
 Route Duration: 00h00m32s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: GigabitEthernet0/0/0
 Original nexthop: 10.0.12.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255
 Advertised to such 1 peers:
    10.0.23.3
[AR10]display bgp routing-table
 BGP Local router ID is 10.0.2.2 
 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  10.1.1.0/24        10.0.12.1       0          100        0      i
[AR10]display bgp peer 10.0.24.4 verbose
	BGP Peer is 10.0.24.4,  remote AS 64511  
	Type: IBGP link
	BGP version 4, Remote router ID 10.0.4.4
	Update-group ID: 2  
	BGP current state: Established, Up for 00h09m19s 
	BGP current event: KATimerExpired
	BGP last state: OpenConfirm
	BGP Peer Up count: 1
	Received total routes: 0
	Received active routes total: 0
	Advertised total routes: 0
	Port:  Local - 179	Remote - 49606
	Configured: Connect-retry Time: 32 sec
	Configured: Active Hold Time: 180 sec	Keepalive Time:60 sec
	Received  : Active Hold Time: 180 sec
	Negotiated: Active Hold Time: 180 sec	Keepalive Time:60 sec
	Peer optional capabilities:
	Peer supports bgp multi-protocol extension
	Peer supports bgp route refresh capability
	Peer supports bgp 4-byte-as capability
	Address family IPv4 Unicast: advertised and received
 Received: Total 17 messages
		 Update messages 		6 
		 Open messages 			1 
		 KeepAlive messages 		10 
		 Notification messages  	0 
		 Refresh messages 		0
 Sent: Total 16 messages
		 Update messages 		2 
		 Open messages 			3 
		 KeepAlive messages 		10 
		 Notification messages  	0 
		 Refresh messages 		1
 Authentication type configured: None
 Last keepalive received: 2024/07/25 19:56:56 UTC-08:00    
 Last keepalive sent    : 2024/07/25 19:56:56 UTC-08:00    
 Last update    received: 2024/07/25 19:55:54 UTC-08:00    
 Last update    sent    : 2024/07/25 19:52:57 UTC-08:00    
 Minimum route advertisement interval is 15 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Peer Preferred Value: 0
 Routing policy configured:
 No import update filter list
 No export update filter list
 No import prefix list
 No export prefix list
 No import route policy 
 Export route policy is: bgp
 No import distribute policy 
 No export distribute policy 
[AR10]q
<AR10>refresh bgp 10.0.24.4 import
<AR10>display bgp peer 10.0.24.4 verbose | in Update
	Update-group ID: 2
	BGP current event: RecvUpdate
		 Update messages 		7
		 Update messages 		2
<AR10>display bgp routing-table 10.1.1.0 24
 BGP local router ID : 10.0.2.2
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.0/24:
 RR-client route.
 From: 10.0.12.1 (10.0.1.1)
 Route Duration: 00h02m00s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: GigabitEthernet0/0/0
 Original nexthop: 10.0.12.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255
 Advertised to such 1 peers:
    10.0.23.3
<AR10>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

AR11

The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR11
[AR11]int lo0
[AR11-LoopBack0]ip add 10.0.3.3 32
[AR11-LoopBack0]int g0/0/2
[AR11-GigabitEthernet0/0/2]ip add 10.0.23.3 24
Jul 25 2024 19:31:27-08:00 AR11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol I
P on the interface GigabitEthernet0/0/2 has entered the UP state. 
[AR11-GigabitEthernet0/0/2]int g0/0/0
[AR11-GigabitEthernet0/0/0]ip add 10.0.34
Jul 25 2024 19:31:46-08:00 AR11 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR11-GigabitEthernet0/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
<AR11>sys
Enter system view, return user view with Ctrl+Z.
[AR11]ospf 1 rou 10.0.3.3
[AR11-ospf-1]area 0
[AR11-ospf-1-area-0.0.0.0]net 10.0.3.3 0.0.0.0
[AR11-ospf-1-area-0.0.0.0]net 10.0.23.2 0.0.0.0
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:40:17-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.23.0.10, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR11-ospf-1-area-0.0.0.0]net 10.0.34
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:15-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:20-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:20-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:20-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[AR11-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:20-08:00 AR11 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=4.34.0.10, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR11-ospf-1-area-0.0.0.0]q
[AR11-ospf-1]q
[AR11]display ospf peer brief 
	 OSPF Process 1 with Router ID 10.0.3.3
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/2             10.0.2.2         Full        
 0.0.0.0          GigabitEthernet0/0/0             10.0.4.4         Full        
 ----------------------------------------------------------------------------
[AR11]bgp 64511
[AR11-bgp]router 10.0.3.3
[AR11-bgp]peer 10.0.23.2 as 64511
[AR11-bgp]peer 10.0.34.4 as 64511
[AR11-bgp]
Jul 25 2024 19:46:07-08:00 AR11 %%01BGP/3/STATE_CHG_UPDOWN(l)[11]:The status of 
the peer 10.0.23.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR11-bgp]
Jul 25 2024 19:48:08-08:00 AR11 %%01BGP/3/STATE_CHG_UPDOWN(l)[12]:The status of 
the peer 10.0.34.4 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR11-bgp]peer 10.0.23.2 reflect-client 
[AR11-bgp]q
[AR11]display bgp routing-table 10.2.2.0 24
 BGP local router ID : 10.0.3.3
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.2.2.0/24:
 RR-client route.
 From: 10.0.23.2 (10.0.2.2)
 Route Duration: 00h00m33s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: GigabitEthernet0/0/2
 Original nexthop: 10.0.23.2
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255
 Advertised to such 1 peers:
    10.0.34.4
[AR11]display bgp routing-table 10.1.1.0 24
 BGP local router ID : 10.0.3.3
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.0/24:
 RR-client route.
 From: 10.0.23.2 (10.0.2.2)
 Route Duration: 00h00m42s  
 Relay IP Nexthop: 10.0.23.2
 Relay IP Out-Interface: GigabitEthernet0/0/2
 Original nexthop: 10.0.12.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255, IGP cost 2
 Originator:  10.0.1.1
 Cluster list: 10.0.2.2
 Advertised to such 1 peers:
    10.0.34.4
[AR11]q
<AR11>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

AR12

The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys AR12
[AR12]int lo0
[AR12-LoopBack0]ip add 10.0.4.4 32
[AR12-LoopBack0]int g0/0/0
[AR12-GigabitEthernet0/0/0]ip add 10.0.34.4 24
Jul 25 2024 19:32:35-08:00 AR12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol I
P on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR12-GigabitEthernet0/0/0]int g0/0/2
[AR12-GigabitEthernet0/0/2]ip add 10.0.2
Jul 25 2024 19:32:53-08:00 AR12 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol I
P on the interface GigabitEthernet0/0/2 has entered the UP state. 
[AR12-GigabitEthernet0/0/2]
  Please check whether system data has been changed, and save data in time
  Configuration console time out, please press any key to log on
<AR12>sys
Enter system view, return user view with Ctrl+Z.
[AR12]ospf 1 rou 10.0.4.4
[AR12-ospf-1]area 0
[AR12-ospf-1-area-0.0.0.0]net 10.0.4.4 0.0.0.0
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.2 0.0.0.0
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.4 0.0.0.0
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.4 0.0.0.0
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.4 0.0.0.0
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.4 0.0.0.0
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.24.4 0.0.0.0
Jul 25 2024 19:41:10-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=2.24.0.10, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR12-ospf-1-area-0.0.0.0]net 10.0.34.3 0.0.0.0
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[AR12-ospf-1-area-0.0.0.0]
Jul 25 2024 19:41:21-08:00 AR12 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes 
event: neighbor status changed. (ProcessId=256, NeighborAddress=3.34.0.10, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[AR12-ospf-1-area-0.0.0.0]q
[AR12-ospf-1]q
[AR12]dis ospf routing 
	 OSPF Process 1 with Router ID 10.0.4.4
		  Routing Tables 
 Routing for Network 
 Destination        Cost  Type       NextHop         AdvRouter       Area
 10.0.4.4/32        0     Stub       10.0.4.4        10.0.4.4        0.0.0.0
 10.0.24.0/24       1     Transit    10.0.24.4       10.0.4.4        0.0.0.0
 10.0.34.0/24       1     Transit    10.0.34.4       10.0.4.4        0.0.0.0
 10.0.1.1/32        2     Stub       10.0.24.2       10.0.1.1        0.0.0.0
 10.0.2.2/32        1     Stub       10.0.24.2       10.0.2.2        0.0.0.0
 10.0.3.3/32        1     Stub       10.0.34.3       10.0.3.3        0.0.0.0
 10.0.12.0/24       2     Transit    10.0.24.2       10.0.1.1        0.0.0.0
 10.0.23.0/24       2     Transit    10.0.24.2       10.0.2.2        0.0.0.0
 10.0.23.0/24       2     Transit    10.0.34.3       10.0.2.2        0.0.0.0
 Total Nets: 9  
 Intra Area: 9  Inter Area: 0  ASE: 0  NSSA: 0 
[AR12]bgp 64511
[AR12-bgp]router 10.0.4.4
[AR12-bgp]peer 10.0.24.2 as 64511
[AR12-bgp]peer 10.0.34.3 as 64511
[AR12-bgp]
Jul 25 2024 19:47:57-08:00 AR12 %%01BGP/3/STATE_CHG_UPDOWN(l)[12]:The status of 
the peer 10.0.24.2 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR12-bgp]
Jul 25 2024 19:48:08-08:00 AR12 %%01BGP/3/STATE_CHG_UPDOWN(l)[13]:The status of 
the peer 10.0.34.3 changed from OPENCONFIRM to ESTABLISHED. (InstanceName=Public
, StateChangeReason=Up)  
[AR12-bgp]peer 10.0.34.3 reflect-client 
[AR12-bgp]q
[AR12]display bgp routing-table 10.2.2.0 24
 BGP local router ID : 10.0.4.4
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.2.2.0/24:
 RR-client route.
 From: 10.0.34.3 (10.0.3.3)
 Route Duration: 00h00m43s  
 Relay IP Nexthop: 10.0.24.2
 Relay IP Out-Interface: GigabitEthernet0/0/2
 Original nexthop: 10.0.23.2
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255, IGP cost 2
 Originator:  10.0.2.2
 Cluster list: 10.0.3.3
 Advertised to such 1 peers:
    10.0.24.2
[AR12]display bgp routing-table 10.1.1.0 24
 BGP local router ID : 10.0.4.4
 Local AS number : 64511
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.0/24:
 RR-client route.
 From: 10.0.34.3 (10.0.3.3)
 Route Duration: 00h00m50s  
 Relay IP Nexthop: 10.0.24.2
 Relay IP Out-Interface: GigabitEthernet0/0/2
 Original nexthop: 10.0.12.1
 Qos information : 0x0
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, bes
t, select, active, pre 255, IGP cost 2
 Originator:  10.0.1.1
 Cluster list: 10.0.3.3, 10.0.2.2
 Advertised to such 1 peers:
    10.0.24.2
[AR12]q
<AR12>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值