!
!debug bgp updates
!debug bgp vpn leak-from-vrf
!debug bgp vpn leak-to-vrf
!debug bgp nht
!debug route-map
!
router bgp 65001
 bgp router-id 10.10.10.10
 no bgp ebgp-requires-policy
!
router bgp 65001 vrf Customer
 bgp router-id 192.168.1.2
 no bgp ebgp-requires-policy
 address-family ipv4 unicast
  redistribute connected
  rd vpn export 192.168.1.2:2
  rt vpn import 192.168.1.2:2
  rt vpn export 192.168.1.2:2
  export vpn
  import vpn
 exit-address-family
!
router bgp 65001 vrf Service
 bgp router-id 192.168.2.2
 no bgp ebgp-requires-policy
 address-family ipv4 unicast
  redistribute connected
  rd vpn export 192.168.2.2:2
  rt vpn import 192.168.2.2:2 192.168.1.2:2
  rt vpn export 192.168.2.2:2
  route-map vpn import from-customer
  export vpn
  import vpn
 exit-address-family
!
bgp extcommunity-list standard from-customer seq 5 permit rt 192.168.1.2:2
!
ip prefix-list p1 seq 5 permit 192.0.2.0/24
!
route-map from-customer permit 10
 match extcommunity from-customer
 match ip address prefix-list p1
 set local-preference 123
route-map from-customer permit 20
!
