summaryrefslogtreecommitdiffstats
path: root/tests/topotests/bgp_route_map_match_ipv6_nexthop/r1/bgpd.conf
blob: 8b743bd3206ea1822f58aa3834a39774bc872ddf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
!
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
 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
!