Srv2 @ 16 – IGP-Less Transport

!! IOS XR Configuration 5.2.2
!! Last configuration change at Thu Jul 23 19:51:20 2015 by juniper
!
hostname 00-PE2
telnet vrf default ipv4 server max-servers 10
line console
 exec-timeout 0 0
 session-timeout 0
!
line default
 exec-timeout 0 0
 session-timeout 0
!
interface Loopback0
 ipv4 address 172.16.3.22 255.255.255.255
!
interface MgmtEth0/0/CPU0/0
 ipv4 address 10.255.0.22 255.255.0.0
!
interface GigabitEthernet0/0/0/0
 ipv4 address 10.2.0.0 255.255.255.254
!
interface GigabitEthernet0/0/0/1
 ipv4 address 10.0.0.2 255.255.255.254
!
community-set CM-RR
  65000:1
end-set
!
community-set CM-VM
  65000:100
end-set
!
community-set CM-SERVER
  65000:3
end-set
!
community-set CM-REGION-0
  65000:1000
end-set
!
community-set CM-REGION-2
  65000:1002
end-set
!
route-policy PL-EBGP-INET-OUT
  if community matches-any CM-VM then
    pass
  else
    drop
  endif
end-policy
!
route-policy PL-LOCAL-LOOPBACK
  if community matches-any CM-SERVER then
    pass
  else
    drop
  endif
end-policy
!
route-policy PL-LOCAL-INTERFACES
  if destination in (172.16.3.22/32) then
    set community CM-SERVER additive
    set community CM-REGION-2 additive
    pass
  endif
  if destination in (10.2.0.0/31) then
    set community CM-VM
    pass
  endif
end-policy
!
router static
 address-family ipv4 unicast
  0.0.0.0/0 Null0
  10.0.0.3/32 GigabitEthernet0/0/0/1
 !
!
router bgp 65302
 mpls activate
  interface GigabitEthernet0/0/0/1
 !
 bgp unsafe-ebgp-policy
 address-family ipv4 unicast
  redistribute connected route-policy PL-LOCAL-INTERFACES
  allocate-label all
 !
 neighbor-group eBGP-INET
  ebgp-multihop 255
  update-source Loopback0
  address-family ipv4 unicast
   send-community-ebgp
   route-policy PL-EBGP-INET-OUT out
  !
 !
 neighbor 10.0.0.3
  remote-as 65202
  address-family ipv4 labeled-unicast
   send-community-ebgp
   route-policy PL-LOCAL-LOOPBACK out
  !
 !
 neighbor 172.16.1.1
  remote-as 65101
  use neighbor-group eBGP-INET
 !
 neighbor 172.16.1.2
  remote-as 65102
  use neighbor-group eBGP-INET
 !
!
mpls oam
!
ssh server v2
end