I'm having a weird issue that i can't seem to put my finger on what's wrong. Everything is working except for XR2 advertising it's own loopback to R4:
RP/0/5/CPU0:XR2#sh bgp vpnv4 uni neigh 10.0.0.4 ad
Sun Dec 15 06:12:45.853 UTC
Network Next Hop From AS Path
Route Distinguisher: 10.0.0.2:1
172.16.0.2/32 10.0.0.2 10.0.0.2 i
Route Distinguisher: 10.0.0.5:1
172.16.0.5/32 10.0.0.5 10.0.0.5 i
Route Distinguisher: 10.0.0.19:1
172.16.0.19/32 10.0.0.19 10.0.0.19 i
It IS advertising it within AS 1000:
RP/0/5/CPU0:XR2#sh bgp vpnv4 uni neigh 10.0.0.2 ad
Sun Dec 15 06:15:43.414 UTC
Network Next Hop From AS Path
Route Distinguisher: 10.0.0.1:1
172.16.0.1/32 10.0.0.1 10.0.0.4 2000 i
Route Distinguisher: 10.0.0.2:1
172.16.0.2/32 10.0.0.20 10.0.0.2 i
Route Distinguisher: 10.0.0.3:1
172.16.0.3/32 10.0.0.3 10.0.0.4 2000 i
Route Distinguisher: 10.0.0.4:1
172.16.0.4/32 10.0.0.4 10.0.0.4 2000 i
Route Distinguisher: 10.0.0.5:1
172.16.0.5/32 10.0.0.5 10.0.0.5 i
Route Distinguisher: 10.0.0.19:1
172.16.0.19/32 10.0.0.19 10.0.0.19 i
Route Distinguisher: 10.0.0.20:1
172.16.0.20/32 10.0.0.20 Local i
I can't think of what could be causing this behavior as it's sending all other routes except it's own. I've attached what i think is the applicable configs below, if anyone has any ideas i'd appreciate it!
XR2:
vrf FOO
address-family ipv4 unicast
import route-target
1000:1
2000:1
!
export route-target
1000:1
!
!
router bgp 1000
address-family vpnv4 unicast
!
neighbor 10.0.0.2
remote-as 1000
update-source Loopback0
address-family ipv4 unicast
!
address-family vpnv4 unicast
route-reflector-client
!
!
neighbor 10.0.0.4
remote-as 2000
ebgp-multihop 5
update-source Loopback0
address-family vpnv4 unicast
route-policy PASS in
route-policy PASS out
next-hop-unchanged
!
!
neighbor 10.0.0.5
remote-as 1000
update-source Loopback0
address-family vpnv4 unicast
route-reflector-client
!
!
neighbor 10.0.0.19
remote-as 1000
update-source Loopback0
address-family vpnv4 unicast
route-reflector-client
!
vrf FOO
rd 10.0.0.20:1
address-family ipv4 unicast
network 172.16.0.20/32
!
!
!
R4:
vrf definition FOO
rd 10.0.0.4:1
!
address-family ipv4
route-target export 2000:1
route-target import 1000:1
route-target import 2000:1
exit-address-family
!
router bgp 2000
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.20 remote-as 1000
neighbor 10.0.0.20 ebgp-multihop 5
neighbor 10.0.0.20 update-source Loopback0
!
address-family vpnv4
neighbor 10.0.0.20 activate
neighbor 10.0.0.20 send-community both
neighbor 10.0.0.20 next-hop-unchanged
exit-address-family
!
address-family ipv4 vrf FOO
no synchronization
network 172.16.0.4 mask 255.255.255.255
exit-address-family