!
bgp send-extra-data zebra
!
ipv6 access-list nh1 permit 2001:db8:1::/64
ipv6 access-list nh2 permit 2001:db8:2::/64
ipv6 access-list nh3 permit 2001:db8:3::/64
!
ipv6 prefix-list nh4 permit 2001:db8:5::/64 le 128
!
router bgp 65001
 bgp router-id 10.10.10.1
 no bgp ebgp-requires-policy
 neighbor 2001:db8::2 remote-as external
 neighbor 2001:db8::2 timers 3 10
 neighbor 2001:db8::2 timers connect 1
 address-family ipv6 unicast
  neighbor 2001:db8::2 activate
  neighbor 2001:db8::2 route-map r2 in
 exit-address-family
!
route-map r2 permit 10
 match ipv6 next-hop nh1
 set community 65002:1
route-map r2 permit 20
 match ipv6 next-hop nh2
 set community 65002:2
route-map r2 permit 30
 match ipv6 next-hop nh3
 set community 65002:3
route-map r2 permit 40
 match ipv6 next-hop address 2001:db8:4::1
 set community 65002:4
route-map r2 permit 50
 match ipv6 next-hop prefix-list nh4
 set community 65002:5
!
