cancelar
Mostrar resultados para 
Pesquisar em vez de 
Queria dizer: 
cancel
194
Apresentações
1
Útil
5
Respostas

IOS-XR BGP does not work

LincolnR
Level 1
Level 1

I'm studying for the CIEE exam. I set up a lab in EVE-NG with XRv xrv-k9-6.0.1. I'm thinking it might be a bug, as I don't see any reason for BGP not to work.

The /30 link the ping successfully, but BGP doesn't work.

Ping neighbor
GigabitEthernet0/0/0/1 100.10.1.1 Up Up default
Sending 5, 100-byte ICMP Echos to 100.10.1.1, timeout is 2 seconds:
!!!!!
RP/0/0/CPU0:SP#sh route
Thu Apr 3 04:56:16.810 UTC
Gateway of last resort is not set

C 100.10.1.0/30 is directly connected, 01:46:56, GigabitEthernet0/0/0/1
L 100.10.1.2/32 is directly connected, 01:46:56, GigabitEthernet0/0/0/1
RP/0/0/CPU0:SP#

bgp 2 router
address-family ipv4 unicast
!
neighbor 100.10.1.1
remote-as 1
!
!
end

The neighboring BGP has speaker status and BGP Standalone operation

RP/0/0/CPU0:SP#sh bgp summ
Thu Apr 3 04:59:24.837 UTC
BGP router identifier 0.0.0.0, local AS number 2
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 0
BGP main routing table version 1
BGP NSR Initial initsync version 0 (Not Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 1 1 0 0 1 0

The BGP not work

RP/0/0/CPU0:SP#sh bgp
Thu Apr 3 05:01:11.040 UTC

The show bgp process is run

RP/0/0/CPU0:SP#sh processes bgp
Thu Apr 3 04:24:53.849 UTC
Job ID: 1051
PID: 811216
Executable path: /disk0/iosxr-routing-6.0.1/bin/bgp
Instance #: 1
Version ID: 00.00.0000
Respawn: ON
Respawn count: 1
Last started: Thu Apr 3 03:12:04 2025
Process state: Run
Package state: Normal
Started on config: default
Feature name: ON
Tag: default
Process group: v4-routing
core: MAINMEM
Max core: 0
Placement: Placeable
startup_path: /pkg/startup/bgp.startup
Ready: 1.239s
Available: 27,908s
Process cpu time: 0.140 user, 0.030 kernel, 0.170 total
JID TID Stack pri state TimeInState HR:MM:SS:MSEC NAME
1051 1 312K 10 Receive 0:00:00:0000 0:00:00:0100 bgp
1051 2 312K 10 Receive 0:15:20:0396 0:00:00:0019 bgp
1051 3 312K 10 Receive 1:12:48:0390 0:00:00:0000 bgp
1051 4 312K 10 Receive 1:12:47:0170 0:00:00:0000 bgp
1051 5 312K 10 Receive 1:12:46:0620 0:00:00:0000 bgp
1051 6 312K 10 Sigwaitinfo 1:12:47:0900 0:00:00:0000 bgp
1051 7 312K 10 Receive 0:39:09:0339 0:00:00:0000 bgp
1051 8 312K 10 Receive 0:00:00:0679 0:00:00:0010 bgp
1051 9 312K 10 Receive 0:05:40:0026 0:00:00:0000 bgp
1051 10 312K 10 Receive 0:00:02:0369 0:00:00:0000 bgp
1051 11 312K 10 Receive 1:00:43:0700 0:00:00:0000 bgp
1051 12 312K 10 Condvar 1:12:46:0750 0:00:00:0000 bgp
1051 13 312K 10 Receive 1:12:45:0670 0:00:00:0000 bgp
1051 14 312K 10 Receive 0:00:11:0249 0:00:00:0000 bgp
1051 15 312K 10 Receive 1:12:46:0750 0:00:00:0000 bgp
1051 16 312K 10 Receive 0:55:23:0612 0:00:00:0000 bgp
1051 17 312K 10 Receive 0:39:10:0358 0:00:00:0010 bgp
1051 18 312K 10 Receive 1:12:46:0670 0:00:00:0000 bgp
1051 19 312K 10 Receive 0:00:46:0736 0:00:00:0009 bgp
1051 20 312K 10 Receive 0:00:00:0059 0:00:00:0020 bgp
1051 21 312K 10 Receive 1:12:46:0750 0:00:00:0000 bgp
1051 22 312K 10 Receive 1:12:46:0750 0:00:00:0000 bgp
1051 23 312K 10 Receive 1:12:46:0750 0:00:00:0000 bgp
1051 24 312K 10 Receive 0:00:01:0229 0:00:00:0000 bgp
1051 25 312K 10 Receive 0:55:28:0631 0:00:00:0000 bgp
1051 26 312K 10 Nanosleep 0:00:00:0599 0:00:00:0000 bgp
-------------------------------------------------------------------------------
RP/0/0/CPU0:SP#

RP/0/0/CPU0:SP#sh bgp neighbor
Thu Apr 3 05:09:23.866 UTC

BGP neighbor is 100.10.1.1
Remote AS 1, local AS 2, external link
Remote router ID 0.0.0.0
BGP state = Idle (No address-family configured)
NSR State: None
Last read 00:00:00, Last read before reset 00:00:00
Hold time is 180, keepalive interval is 60 seconds
Configured hold time: 180, keepalive: 60, min acceptable hold time: 3
Last write 00:00:00, attempted 0, written 0
Second last write 00:00:00, attempted 0, written 0
Last write before reset 00:00:00, attempted 0, written 0
Second last write before reset 00:00:00, attempted 0, written 0
Last write pulse rcvd not set last full not set pulse count 0
Last write pulse rcvd before reset 00:00:00
Socket not armed for io, not armed for read, not armed for write
Last write thread event before reset 00:00:00, second last 00:00:00
Last KA expiry before reset 00:00:00, second last 00:00:00
Last KA error before reset 00:00:00, KA not sent 00:00:00
Last KA start before reset 00:00:00, second last 00:00:00
Precedence: internet
Non-stop routing is enabled
Enforcing first AS is enabled
Multi-protocol capability not received
Received 0 messages, 0 notifications, 0 in queue
Sent 0 messages, 0 notifications, 0 in queue
Minimum time between advertisement runs is 30 secs
Inbound message logging enabled, 3 messages buffered
Outbound message logging enabled, 3 messages buffered

No address families are configured on the neighbor.
The BGP session with this neighbor will not be established.

Connections established 0; dropped 0
Local host: 0.0.0.0, Local port: 0, IF Handle: 0x00000000
Foreign host: 100.10.1.1, Foreign port: 0
Last reset 00:00:00

 

1 Soluções Aceita

Soluções aceites

Hello @LincolnR 

Please add BGP router-id:

M02rt37_0-1743748102062.png

source:https://www.ciscopress.com/articles/article.asp?p=2756480&seqNum=5

RP/0/0/CPU0:SP#sh runn
Thu Apr 3 16:35:54.077 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:20:33 2025 by admin
!
hostname SP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 2
address-family ipv4 unicast
!
neighbor 100.10.1.1

bgp router-id 100.10.1.2
remote-as 1
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
end

 

_____________________________________________________________________________________________
______________________________________________________________________________________________

 

RP/0/0/CPU0:ISP#sh runn
Thu Apr 3 16:46:05.973 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:17:27 2025 by admin
!
hostname ISP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 1

bgp router-id 100.10.1.1
address-family ipv4 unicast
!
neighbor 100.10.1.2
remote-as 2
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
!
!
end

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Ver solução na publicação original

5 RESPOSTAS 5

M02@rt37
VIP
VIP

Hello @LincolnR 

Try  this

configure
!
router bgp 2
 address-family ipv4 unicast
  network a.b.c.d/x
 !
 neighbor 100.10.1.1
  remote-as 1
  update-source GigabitEthernet0/0/0/1
  address-family ipv4 unicast
 end

--command network for the subnet announcement.

--Note that IOS-XR default setting is to drop eBGP announcements if not explicitely configured.

Example route-policy

configure
!
route-policy rp-bgp-allow-all
  pass
end

 Apply this route-policy to you neighbor:

configure
!
router bgp 2
 address-family ipv4 unicast
  network a.b.c.d/x
 !
 neighbor 100.10.1.1
  remote-as 1
  update-source GigabitEthernet0/0/0/1
  address-family ipv4 unicast
route-policy rp-bgp-allow-all in route-policy rp-bgp-allow-all out
end

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

M02@rt37
BGP status changed from speaker to Active. There is no BGP route in the routing table.

RP/0/0/CPU0:SP#sh runn
Thu Apr 3 16:35:54.077 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:20:33 2025 by admin
!
hostname SP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 2
address-family ipv4 unicast
!
neighbor 100.10.1.1
remote-as 1
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
end

RP/0/0/CPU0:SP#


RP/0/0/CPU0:SP#sh route
Thu Apr 3 16:38:33.327 UTC

Gateway of last resort is not set

C 100.10.1.0/30 is directly connected, 03:14:56, GigabitEthernet0/0/0/1
L 100.10.1.2/32 is directly connected, 03:14:56, GigabitEthernet0/0/0/1

RP/0/0/CPU0:SP#show bgp summary
Thu Apr 3 16:39:31.783 UTC
BGP router identifier 0.0.0.0, local AS number 2
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 0
BGP main routing table version 1
BGP NSR Initial initsync version 0 (Not Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.


Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 1 1 0 0 1 0

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
100.10.1.1 0 1 0 0 0 0 0 00:00:00 Active

RP/0/0/CPU0:SP#show tcp brief
Thu Apr 3 16:41:21.055 UTC
PCB VRF-ID Recv-Q Send-Q Local Address Foreign Address State
0x12152250 0x60000000 0 0 :::179 :::0 LISTEN
0x1214ea98 0x00000000 0 0 :::179 :::0 LISTEN
0x1214dc18 0x60000000 0 0 0.0.0.0:179 0.0.0.0:0 LISTEN
0x121491a8 0x00000000 0 0 0.0.0.0:179 0.0.0.0:0 LISTEN
0x1213c344 0x00000000 0 0 0.0.0.0:0 0.0.0.0:0 CLOSED

SHOW LOGGING

RP/0/0/CPU0:Apr 3 16:27:56.540 : bgp[1052]: [default-event]: Performing BGP generic scan
RP/0/0/CPU0:Apr 3 16:27:56.540 : bgp[1052]: [default-event]: Finished BGP generic scan
RP/0/0/CPU0:Apr 3 16:27:56.710 : bgp[1052]: [default-crit]: IDB: Tmr expired: 'BG'
RP/0/0/CPU0:Apr 3 16:27:56.710 : bgp[1052]: [default-crit]: IDB: Tmr started: 'BG', 60 sec
RP/0/0/CPU0:Apr 3 16:28:05.840 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.2 for nbr 100.10.1.1
RP/0/0/CPU0:Apr 3 16:28:05.840 : bgp[1052]: [default-ioct]: Open to 100.10.1.1 delayed 20s (no router ID)
RP/0/0/CPU0:Apr 3 16:28:08.789 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 16:28:18.059 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.2 for nbr 100.10.1.1
RP/0/0/CPU0:Apr 3 16:28:18.059 : bgp[1052]: [default-ioct]: Open to 100.10.1.1 delayed 20s (no router ID)
RP/0/0/CPU0:Apr 3 16:28:23.808 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 16:28:34.488 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.2 for nbr 100.10.1.1
RP/0/0/CPU0:Apr 3 16:28:34.488 : bgp[1052]: [default-ioct]: Open to 100.10.1.1 delayed 20s (no router ID)
RP/0/0/CPU0:Apr 3 16:28:38.827 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 16:28:53.426 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.2 for nbr 100.10.1.1
RP/0/0/CPU0:Apr 3 16:28:53.426 : bgp[1052]: [default-ioct]: Open to 100.10.1.1 delayed 20s (no router ID)
RP/0/0/CPU0:Apr 3 16:28:53.846 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 16:28:56.556 : bgp[1052]: [default-event]: Performing BGP generic scan
RP/0/0/CPU0:Apr 3 16:28:56.556 : bgp[1052]: [default-event]: Finished BGP generic scan
RP/0/0/CPU0:Apr 3 16:28:56.726 : bgp[1052]: [default-crit]: IDB: Tmr expired: 'BG'
RP/0/0/CPU0:Apr 3 16:28:56.726 : bgp[1052]: [default-crit]: IDB: Tmr started: 'BG', 60 sec
RP/0/0/CPU0:Apr 3 16:29:08.605 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.2 for nbr 100.10.1.1
RP/0/0/CPU0:Apr 3 16:29:08.605 : bgp[1052]: [default-ioct]: Open to 100.10.1.1 delayed 20s (no router ID)
RP/0/0/CPU0:Apr 3 16:29:08.865 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...

_____________________________________________________________________________________________
______________________________________________________________________________________________

 

RP/0/0/CPU0:ISP#sh runn
Thu Apr 3 16:46:05.973 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:17:27 2025 by admin
!
hostname ISP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 1
address-family ipv4 unicast
!
neighbor 100.10.1.2
remote-as 2
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
!
!
end

RP/0/0/CPU0:ISP#

RP/0/0/CPU0:ISP#sh route
Thu Apr 3 16:47:10.008 UTC

Gateway of last resort is not set

C 100.10.1.0/30 is directly connected, 03:25:10, GigabitEthernet0/0/0/1
L 100.10.1.1/32 is directly connected, 03:25:10, GigabitEthernet0/0/0/1
RP/0/0/CPU0:ISP#

RP/0/0/CPU0:ISP#show tcp brief
Thu Apr 3 16:49:53.197 UTC
PCB VRF-ID Recv-Q Send-Q Local Address Foreign Address State
0x12152344 0x60000000 0 0 :::179 :::0 LISTEN
0x1214eb8c 0x00000000 0 0 :::179 :::0 LISTEN
0x1214dd6c 0x60000000 0 0 0.0.0.0:179 0.0.0.0:0 LISTEN
0x121492fc 0x00000000 0 0 0.0.0.0:179 0.0.0.0:0 LISTEN
0x1213c4c0 0x00000000 0 0 0.0.0.0:0 0.0.0.0:0 CLOSED
RP/0/0/CPU0:ISP#

RP/0/0/CPU0:ISP#sh logging

RP/0/0/CPU0:Apr 3 14:26:58.284 : bgp[1052]: [default-event]: Performing BGP generic scan
RP/0/0/CPU0:Apr 3 14:26:58.284 : bgp[1052]: [default-event]: Finished BGP generic scan
RP/0/0/CPU0:Apr 3 14:26:58.464 : bgp[1052]: [default-crit]: IDB: Tmr expired: 'BG'
RP/0/0/CPU0:Apr 3 14:26:58.464 : bgp[1052]: [default-crit]: IDB: Tmr started: 'BG', 60 sec
RP/0/0/CPU0:Apr 3 14:27:02.934 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.1 for nbr 100.10.1.2
RP/0/0/CPU0:Apr 3 14:27:02.934 : bgp[1052]: [default-ioct]: Open check failed for 100.10.1.2 - '- No address family configured (active)'
RP/0/0/CPU0:Apr 3 14:27:02.934 : bgp[1052]: [default-ioct]: Open to 100.10.1.2 delayed 50s (open checks failed)
RP/0/0/CPU0:Apr 3 14:27:03.284 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:27:18.303 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:27:32.252 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.1 for nbr 100.10.1.2
RP/0/0/CPU0:Apr 3 14:27:32.252 : bgp[1052]: [default-ioct]: Open check failed for 100.10.1.2 - '- No address family configured (active)'
RP/0/0/CPU0:Apr 3 14:27:32.252 : bgp[1052]: [default-ioct]: Open to 100.10.1.2 delayed 50s (open checks failed)
RP/0/0/CPU0:Apr 3 14:27:33.322 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:27:48.341 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:27:57.900 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.1 for nbr 100.10.1.2
RP/0/0/CPU0:Apr 3 14:27:57.900 : bgp[1052]: [default-ioct]: Open check failed for 100.10.1.2 - '- No address family configured (active)'
RP/0/0/CPU0:Apr 3 14:27:57.900 : bgp[1052]: [default-ioct]: Open to 100.10.1.2 delayed 50s (open checks failed)
RP/0/0/CPU0:Apr 3 14:27:58.300 : bgp[1052]: [default-event]: Performing BGP generic scan
RP/0/0/CPU0:Apr 3 14:27:58.300 : bgp[1052]: [default-event]: Finished BGP generic scan
RP/0/0/CPU0:Apr 3 14:27:58.480 : bgp[1052]: [default-crit]: IDB: Tmr expired: 'BG'
RP/0/0/CPU0:Apr 3 14:27:58.480 : bgp[1052]: [default-crit]: IDB: Tmr started: 'BG', 60 sec
RP/0/0/CPU0:Apr 3 14:28:03.360 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:28:18.379 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:28:33.398 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:28:46.207 : bgp[1052]: [default-ioct]: Using local addr 100.10.1.1 for nbr 100.10.1.2
RP/0/0/CPU0:Apr 3 14:28:46.207 : bgp[1052]: [default-ioct]: Open check failed for 100.10.1.2 - '- No address family configured (active)'
RP/0/0/CPU0:Apr 3 14:28:46.207 : bgp[1052]: [default-ioct]: Open to 100.10.1.2 delayed 50s (open checks failed)
RP/0/0/CPU0:Apr 3 14:28:48.417 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:28:58.316 : bgp[1052]: [default-event]: Performing BGP generic scan
RP/0/0/CPU0:Apr 3 14:28:58.316 : bgp[1052]: [default-event]: Finished BGP generic scan
RP/0/0/CPU0:Apr 3 14:28:58.496 : bgp[1052]: [default-crit]: IDB: Tmr expired: 'BG'
RP/0/0/CPU0:Apr 3 14:28:58.496 : bgp[1052]: [default-crit]: IDB: Tmr started: 'BG', 60 sec
RP/0/0/CPU0:Apr 3 14:29:03.436 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...
RP/0/0/CPU0:Apr 3 14:29:18.455 : bgp[1052]: [default-iowt]: bgp_io_write_nbr_ver_timer_process: nbr_ver_timer handler: Empty ilist!! : Returning...

Hello @LincolnR 

Please add BGP router-id:

M02rt37_0-1743748102062.png

source:https://www.ciscopress.com/articles/article.asp?p=2756480&seqNum=5

RP/0/0/CPU0:SP#sh runn
Thu Apr 3 16:35:54.077 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:20:33 2025 by admin
!
hostname SP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.2 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 2
address-family ipv4 unicast
!
neighbor 100.10.1.1

bgp router-id 100.10.1.2
remote-as 1
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
end

 

_____________________________________________________________________________________________
______________________________________________________________________________________________

 

RP/0/0/CPU0:ISP#sh runn
Thu Apr 3 16:46:05.973 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 16:17:27 2025 by admin
!
hostname ISP
interface MgmtEth0/0/CPU0/0
shutdown
!
interface GigabitEthernet0/0/0/0
shutdown
!
interface GigabitEthernet0/0/0/1
ipv4 address 100.10.1.1 255.255.255.252
!
interface GigabitEthernet0/0/0/2
shutdown
!
route-policy rp-bgp-allow-all
pass
end-policy
!
router bgp 1

bgp router-id 100.10.1.1
address-family ipv4 unicast
!
neighbor 100.10.1.2
remote-as 2
update-source GigabitEthernet0/0/0/1
address-family ipv4 unicast
route-policy rp-bgp-allow-all in
route-policy rp-bgp-allow-all out
!
!
!
end

 

Best regards
.ı|ı.ı|ı. If This Helps, Please Rate .ı|ı.ı|ı.

Thank you very much!

RP/0/0/CPU0:SP#sh bgp
Thu Apr 3 19:43:09.098 UTC
RP/0/0/CPU0:SP#sh bgp summ
Thu Apr 3 19:43:16.947 UTC
BGP router identifier 100.10.1.2, local AS number 2
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0xe0000000 RD version: 0
BGP main routing table version 1
BGP NSR Initial initsync version 1 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.


Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 1 1 1 1 1 0

Neighbor                Spk     AS       MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
100.10.1.1              0        1          96 97 1 0 0                                     01:33:50         0

I already have a BGP neighborhood.

Can you answer a question for me?
BGP is not showing up.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

RP/0/0/CPU0:SP#sh bgp
Thu Apr 3 19:54:31.831 UTC


Devaa
Spotlight
Spotlight

Hi @LincolnR 

It's due to BGP router-id. You add a loopback interface with some IPv4 address or configure bgp router-id manually for this to work. 

BGP Router Identifier

For BGP sessions between neighbors to be established, BGP must be assigned a router ID. The router ID is sent to BGP peers in the OPEN message when a BGP session is established.

BGP attempts to obtain a router ID in the following ways (in order of preference):


  • By means of the address configured using the bgp router-id command in router configuration mode.

  • By using the highest IPv4 address on a loopback interface in the system if the router is booted with saved loopback address configuration.

  • By using the primary IPv4 address of the first loopback address that gets configured if there are not any in the saved configuration.

If none of these methods for obtaining a router ID succeeds, BGP does not have a router ID and cannot establish any peering sessions with BGP neighbors. In such an instance, an error message is entered in the system log, and the show bgp summary command displays a router ID of 0.0.0.0.

After BGP has obtained a router ID, it continues to use it even if a better router ID becomes available. This usage avoids unnecessary flapping for all BGP sessions. However, if the router ID currently in use becomes invalid (because the interface goes down or its configuration is changed), BGP selects a new router ID (using the rules described) and all established peering sessions are reset.