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
XRv xrv-k9-6.0.1 - BGP does not work
Moderator: mike
-
- Posts: 1
- Joined: Thu Apr 03, 2025 2:21 pm
Re: XRv xrv-k9-6.0.1 - BGP does not work
did you post both sides of the configuration? did you activate? did you set the AS and setup a neighbor relationship?
-
- Posts: 1
- Joined: Fri Apr 04, 2025 8:58 am
Re: XRv xrv-k9-6.0.1 - BGP does not work
This definitely looks like a configuration oversight rather than a bug. From the output, the key line is:
"BGP state = Idle (No address-family configured)"
This means that although you've defined the neighbor, you haven't activated the IPv4 unicast address family under the neighbor statement. Try adding the following inside your BGP config:
router bgp 2
neighbor 100.10.1.1
remote-as 1
address-family ipv4 unicast
activate
Without the activate command under the address family, the session won't come up.
"BGP state = Idle (No address-family configured)"
This means that although you've defined the neighbor, you haven't activated the IPv4 unicast address family under the neighbor statement. Try adding the following inside your BGP config:
router bgp 2
neighbor 100.10.1.1
remote-as 1
address-family ipv4 unicast
activate
Without the activate command under the address family, the session won't come up.
-
- Posts: 12
- Joined: Thu Sep 17, 2020 12:06 pm
Re: XRv xrv-k9-6.0.1 - BGP does not work
I managed to solve it this way:
RP/0/0/CPU0:SPhashtag#sh runn
Thu Apr 3 20:23:19.323 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 18:08:34 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
bgp router-id 100.10.1.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
RP/0/0/CPU0:SPhashtag#sh runn
Thu Apr 3 20:23:19.323 UTC
Building configuration...
!! IOS XR Configuration 6.1.3
!! Last configuration change at Thu Apr 3 18:08:34 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
bgp router-id 100.10.1.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