58 lines
2.3 KiB
INI
58 lines
2.3 KiB
INI
|
|
! ============================================================================
|
||
|
|
! role-route-reflector.cfg -- RR-specific overlay for CORE routers
|
||
|
|
! ============================================================================
|
||
|
|
! Apply ONLY on routers that act as iBGP route reflectors for their AS.
|
||
|
|
! Skip on the client routers -- there this overlay is a no-op at best and
|
||
|
|
! creates inadvertent reflection at worst.
|
||
|
|
!
|
||
|
|
! Complements 01-bmp-basic.cfg (defines the BMP-MONITORED neighbor-group)
|
||
|
|
! and 02-bgp-ls.cfg (which activates the LS AF toward peers). The
|
||
|
|
! RR-specific bit here is `route-reflector-client` under the AFs for
|
||
|
|
! every client neighbor.
|
||
|
|
!
|
||
|
|
! Two conventions worth preserving:
|
||
|
|
! - Put every RR client into a `RR-CLIENT` neighbor-group so the
|
||
|
|
! reflector attribute is set once at group scope.
|
||
|
|
! - Combine with BMP-MONITORED via `use neighbor-group` at the neighbor
|
||
|
|
! itself -- IOS-XR only allows one `use neighbor-group` per neighbor,
|
||
|
|
! so nest common bits by inheritance if you need multiple groups.
|
||
|
|
! ============================================================================
|
||
|
|
|
||
|
|
router bgp <LOCAL_ASN>
|
||
|
|
!
|
||
|
|
! Cluster-id -- set to the RR's loopback so RR<->RR pairs recognize each
|
||
|
|
! other's reflected routes and don't loop. Both RRs in a pair share the
|
||
|
|
! same cluster-id if you want them to act as a single logical RR.
|
||
|
|
bgp cluster-id <ROUTER_LOOPBACK>
|
||
|
|
!
|
||
|
|
! RR-CLIENT neighbor-group: applied to every iBGP client peer.
|
||
|
|
neighbor-group RR-CLIENT
|
||
|
|
remote-as <LOCAL_ASN>
|
||
|
|
update-source Loopback0
|
||
|
|
bmp-activate server 1
|
||
|
|
address-family ipv4 unicast
|
||
|
|
route-reflector-client
|
||
|
|
next-hop-self
|
||
|
|
!
|
||
|
|
address-family link-state link-state
|
||
|
|
route-reflector-client
|
||
|
|
!
|
||
|
|
!
|
||
|
|
!
|
||
|
|
|
||
|
|
! Per-client wiring (repeat per client, replacing <CLIENT_LOOPBACK>):
|
||
|
|
!
|
||
|
|
! router bgp <LOCAL_ASN>
|
||
|
|
! neighbor <CLIENT_LOOPBACK>
|
||
|
|
! use neighbor-group RR-CLIENT
|
||
|
|
! !
|
||
|
|
! !
|
||
|
|
|
||
|
|
! --- Verify -----------------------------------------------------------------
|
||
|
|
! show bgp neighbors <CLIENT_LOOPBACK> | include Route-Reflector
|
||
|
|
! show bgp summary ! all clients Established
|
||
|
|
! show bgp neighbors <CLIENT_LOOPBACK> advertised-routes | count
|
||
|
|
!
|
||
|
|
! On the stack side (once the routers are BMP-reporting and reflecting):
|
||
|
|
! Grafana -> OBMP-Learning -> RR Loc-RIB Diff (should populate)
|