Specifications
Implementing BGP on Cisco IOS XR Software
How to Implement BGP on Cisco IOS XR Software
RC-97
Cisco IOS XR Routing Configuration Guide
DETAILED STEPS
Command or Action Purpose
Step 1
configure 
Example:
RP/0/RP0/CPU0:router# configure
Enters global configuration mode.
Step 2
router bgp 
as-number 
Example:
RP/0/RP0/CPU0:router(config)# router bgp 120
Enters BGP configuration mode allowing you to configure 
the BGP routing process.
Step 3
bgp router-id 
ip-address
Example:
RP/0/RP0/CPU0:router(config-bgp)# bgp router-id 
10.0.0.0
Configures a fixed router ID for the BGP-speaking router. 
Step 4
vrf 
vrf-name
Example:
RP/0/RP0/CPU0:router(config-bgp)# vrf vrf_pe
Configures a VRF instance.
Step 5
rd {
as-number
:
nn
 | 
ip-address
:
nn
 | auto} 
Example:
RP/0/RP0/CPU0:router(config-bgp-vrf)# rd 
345:567
Configures the route distinguisher. 
Use the auto keyword if you want the router to 
automatically assign a unique RD to the VRF. 
Automatic assignment of RDs is possible only if a router ID 
is configured using the bgp router-id command in router 
configuration mode. This allows you to configure a globally 
unique router ID that can be used for automatic RD 
generation. The router ID for the VRF does not need to be 
globally unique, and using the VRF router ID would be 
incorrect for automatic RD generation. Having a single 
router ID also helps in checkpointing RD information for 
BGP graceful restart, because it is expected to be stable 
across reboots.










