diff options
Diffstat (limited to 'tests/topotests/bgp_community_alias/r2/bgpd.conf')
-rw-r--r-- | tests/topotests/bgp_community_alias/r2/bgpd.conf | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/topotests/bgp_community_alias/r2/bgpd.conf b/tests/topotests/bgp_community_alias/r2/bgpd.conf new file mode 100644 index 0000000..7806077 --- /dev/null +++ b/tests/topotests/bgp_community_alias/r2/bgpd.conf @@ -0,0 +1,25 @@ +! +bgp send-extra-data zebra +! +router bgp 65002 + no bgp ebgp-requires-policy + neighbor 192.168.1.1 remote-as external + address-family ipv4 unicast + redistribute connected + neighbor 192.168.1.1 route-map r1 out + exit-address-family +! +ip prefix-list p1 permit 172.16.16.1/32 +ip prefix-list p2 permit 172.16.16.2/32 +ip prefix-list p3 permit 172.16.16.3/32 +! +route-map r1 permit 10 + match ip address prefix-list p1 + set community 65001:1 65001:2 + set large-community 65001:1:1 65001:1:2 +route-map r1 permit 20 + match ip address prefix-list p2 + set community 65002:1 65002:2 +route-map r1 permit 30 + match ip address prefix-list p3 +! |