frr defaults traditional

hostname r3
password zebra
log stdout notifications
log commands
log file bgpd.log

#debug bgp vpn label
router bgp 5226
   bgp router-id 3.3.3.3
   bgp cluster-id 3.3.3.3
   no bgp ebgp-requires-policy
   neighbor 2.2.2.2 remote-as 5226
   neighbor 2.2.2.2 update-source 3.3.3.3
   neighbor 2.2.2.2 timers 3 10

   address-family ipv4 unicast
     no neighbor 2.2.2.2 activate
   exit-address-family

  address-family ipv4 vpn
     neighbor 2.2.2.2 activate
   exit-address-family

router bgp 5227 vrf r3-cust1

   bgp router-id 192.168.1.1
   no bgp ebgp-requires-policy

   neighbor 192.168.1.2 remote-as 5227
   neighbor 192.168.1.2 update-source 192.168.1.1
   neighbor 192.168.1.2 timers 3 10

   address-family ipv4 unicast
     neighbor 192.168.1.2 activate
     neighbor 192.168.1.2 next-hop-self

     label vpn export 103
     rd vpn export 10:3
     rt vpn both 52:100

     import vpn
     export vpn
   exit-address-family


end
