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