frr defaults traditional
!
hostname r2
password zebra
!
log stdout notifications
log commands
!
router bgp 65001
 bgp router-id 192.0.2.3
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 neighbor 2001:db8:13::1 remote-as 65001
 neighbor 2001:db8:13::1 timers 3 10
 neighbor 2001:db8:13::1 timers connect 1
 neighbor 2001:db8:13::1 capability extended-nexthop
 !
 segment-routing srv6
  locator default
 !
 address-family ipv4 vpn
  neighbor 2001:db8:13::1 activate
 exit-address-family
 !
!
router bgp 65001 vrf vrf10
 bgp router-id 192.0.2.3
 !
 address-family ipv4 unicast
  redistribute connected
  sid vpn export 1
  rd vpn export 65001:10
  rt vpn both 0:10
  import vpn
  export vpn
 exit-address-family
 !
!
router bgp 65001 vrf vrf20
 bgp router-id 192.0.2.2
 !
 address-family ipv4 unicast
  redistribute connected
  sid vpn export 2 
  rd vpn export 65001:20
  rt vpn both 0:20
  import vpn
  export vpn
 exit-address-family
 !
!
