RP/0/0/CPU0:XR1# show run Wed Sep 28 16:44:36.953 UTC Building configuration... !! IOS XR Configuration 5.3.2 !! Last configuration change at Wed Sep 28 16:24:47 2016 by cisco ! hostname XR1 logging console debugging logging buffered 9999999 logging buffered debugging service timestamps log datetime msec year service timestamps debug datetime msec year vrf TOR2 address-family ipv4 unicast ! address-family ipv6 unicast ! ! vrf SPINE2 address-family ipv4 unicast ! address-family ipv6 unicast ! ! line console exec-timeout 0 0 transport preferred none ! interface Loopback1 vrf SPINE2 ipv4 address 10.0.255.2 255.255.255.255 ! interface Loopback100 vrf TOR2 ipv4 address 10.0.255.200 255.255.255.255 ! interface Loopback999 vrf TOR2 ipv4 address 172.16.200.1 255.255.255.0 ! interface GigabitEthernet0/0/0/0 carrier-delay up 0 down 0 load-interval 30 ! interface GigabitEthernet0/0/0/0.11 vrf TOR2 ipv4 address 10.0.0.2 255.255.255.254 encapsulation dot1q 11 logging events link-status ! interface GigabitEthernet0/0/0/0.13 vrf SPINE2 ipv4 address 10.0.0.7 255.255.255.254 encapsulation dot1q 13 logging events link-status ! interface GigabitEthernet0/0/0/0.15 vrf SPINE2 ipv4 address 10.0.0.11 255.255.255.254 encapsulation dot1q 15 logging events link-status ! route-policy RP_PASSALL pass end-policy ! route-policy RP_BGP_ONLY_ULU if community matches-any (ios-regex '_[0-9]*:5$') then pass else drop endif end-policy ! route-policy RP_BGP_AS65200_OUT if destination in (172.16.200.0/24) then set community (65200:5) endif end-policy ! route-policy RP_IPV4_BGP_LU_OUT if community matches-any (ios-regex '_.*:1_') then pass endif end-policy ! route-policy RP_IPV4_AS65002_PREFIX_REDISTRIBUTION if destination in (10.0.255.2/32) then set community (65100:1) endif end-policy ! route-policy RP_IPV4_AS65200_PREFIX_REDISTRIBUTION if destination in (10.0.255.200/32) then set community (65100:1) elseif destination in (172.16.200.0/24) then set community (65100:5) endif end-policy ! router static vrf TOR2 address-family ipv4 unicast 10.0.0.3/32 GigabitEthernet0/0/0/0.11 ! ! vrf SPINE2 address-family ipv4 unicast 10.0.0.6/32 GigabitEthernet0/0/0/0.13 10.0.0.10/32 GigabitEthernet0/0/0/0.15 ! ! ! router bgp 65000 bgp router-id 1.1.1.1 bgp log neighbor changes detail address-family vpnv4 unicast ! address-family vpnv6 unicast ! vrf TOR2 rd 10.0.255.200:65200 bgp router-id 10.0.255.200 mpls activate interface GigabitEthernet0/0/0/0.11 ! bgp bestpath as-path multipath-relax address-family ipv4 unicast redistribute connected route-policy RP_IPV4_AS65200_PREFIX_REDISTRIBUTION allocate-label route-policy RP_IPV4_BGP_LU_OUT ! neighbor 10.0.0.3 remote-as 65020 local-as 65200 no-prepend replace-as address-family ipv4 labeled-unicast send-community-ebgp route-policy RP_PASSALL in route-policy RP_IPV4_BGP_LU_OUT out ! ! neighbor 10.0.255.1 remote-as 65001 ebgp-multihop 255 local-as 65200 no-prepend replace-as update-source Loopback100 address-family ipv4 unicast send-community-ebgp route-policy RP_BGP_ONLY_ULU in route-policy RP_BGP_AS65200_OUT out ! ! neighbor 10.0.255.2 remote-as 65002 ebgp-multihop 255 local-as 65200 no-prepend replace-as update-source Loopback100 address-family ipv4 unicast send-community-ebgp route-policy RP_BGP_ONLY_ULU in route-policy RP_BGP_AS65200_OUT out ! ! ! vrf SPINE2 rd 10.0.255.2:65002 bgp router-id 10.0.255.2 mpls activate interface GigabitEthernet0/0/0/0.13 interface GigabitEthernet0/0/0/0.15 ! bgp bestpath as-path multipath-relax address-family ipv4 unicast redistribute connected route-policy RP_IPV4_AS65002_PREFIX_REDISTRIBUTION allocate-label route-policy RP_IPV4_BGP_LU_OUT ! neighbor 10.0.0.6 remote-as 65010 local-as 65002 no-prepend replace-as address-family ipv4 labeled-unicast send-community-ebgp route-policy RP_PASSALL in route-policy RP_IPV4_BGP_LU_OUT out ! ! neighbor 10.0.0.10 remote-as 65020 local-as 65002 no-prepend replace-as address-family ipv4 labeled-unicast send-community-ebgp route-policy RP_PASSALL in route-policy RP_IPV4_BGP_LU_OUT out ! ! neighbor 10.0.255.100 remote-as 65100 ebgp-multihop 255 local-as 65002 no-prepend replace-as update-source Loopback1 address-family ipv4 unicast send-community-ebgp route-policy RP_BGP_ONLY_ULU in route-policy RP_BGP_ONLY_ULU out ! ! neighbor 10.0.255.200 remote-as 65200 ebgp-multihop 255 local-as 65002 no-prepend replace-as update-source Loopback1 address-family ipv4 unicast send-community-ebgp route-policy RP_BGP_ONLY_ULU in route-policy RP_BGP_ONLY_ULU out ! ! ! ! end