frr defaults traditional
!
hostname r1
password zebra
!
log commands
!
router bgp 65001
 bgp router-id 192.0.2.1
 no bgp ebgp-requires-policy
 no bgp default ipv4-unicast
 neighbor 2001:db8:12::2 remote-as 65002
 neighbor 2001:db8:12::2 timers 3 10
 neighbor 2001:db8:12::2 timers connect 1
 neighbor 2001:db8:12::2 capability extended-nexthop
 neighbor 2001:db8:13::3 remote-as 65001
 neighbor 2001:db8:13::3 timers 3 10
 neighbor 2001:db8:13::3 timers connect 1
 neighbor 2001:db8:13::3 capability extended-nexthop
 !
 segment-routing srv6
  locator default
 !
 address-family ipv4 vpn
  neighbor 2001:db8:12::2 activate
  neighbor 2001:db8:13::3 activate
 exit-address-family
 !
!
router bgp 65001 vrf vrf10
 bgp router-id 192.0.2.1
 !
 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.1
 !
 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
 !
!
interface eth0
 mpls bgp forwarding
!
interface eth1
 mpls bgp forwarding
!
