Configuring multiple community string with a BGP neighbor #13383
ChinmayaAgarwal
started this conversation in
General
Replies: 1 comment
-
Why not set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We have a use case where we want to associate a bgp neighbor with multiple community strings where each community string is associated with a prefix list. As per the below link
https://docs.frrouting.org/en/latest/bgp.html#clicmd-set-community-none-COMMUNITY-additive
We first created a prefix list followed by creating a route map which associates itself with the prefix list and community string. Since due to this configuration, we will be having multiple route maps created for each community string and prefix list, we want that bgp neighbor should be associated to multiple route maps. Below is a sample configuration for the same:-
router bgp 100 vrf vrf1
bgp router-id 91.91.91.101
neighbor 91.91.91.102 remote-as 100
no bgp network import-check
!
address-family ipv4 unicast
redistribute connected
neighbor 91.91.91.102 route-map RMAP_1 out
neighbor 91.91.91.102 route-map RMAP_2 out
neighbor 91.91.91.102 activate
exit-address-family
!
ip prefix-list vrf1_DENY_IN_V4 seq 5 deny any
ip prefix-list vrf1_501_ALLOW_OUT_V4 seq 5 permit 41.41.10.101/24
ip prefix-list vrf1_501_ALLOW_OUT_V4 seq 10 permit 41.41.12.101/24
ip prefix-list vrf1_502_ALLOW_OUT_V4 seq 5 permit 45.41.10.101/24
ip prefix-list vrf1_502_ALLOW_OUT_V4 seq 10 permit 45.41.12.101/24
!
route-map RMAP_1 permit 10
match ip address prefix-list vrf1_501_ALLOW_OUT_V4
set community 6001:501
!
route-map RMAP_2 permit 10
match ip address prefix-list vrf1_502_ALLOW_OUT_V4
set community 6001:502
!
On applying this configuration we observed that frr is only picking one and the last route map configured with the neighbor i.e. RMAP_2. Is there another way to configure community string as per our use case or are we missing something here?
Thanks and Regards,
Chinmaya Agarwal
Beta Was this translation helpful? Give feedback.
All reactions