01-29-2025 03:46 AM
Hi All,
I'm trying to attach an extended community to a specific subnet learned from a CPE using the below config
however i don't see this community attached
ip prefix-list TEST_BGP_IN permit 192.168.1.0/24
route-map TEST_ROUTE_POLICY permit 5
match ip address prefix-list TEST_BGP_IN
set extcommunity rt 31655:2000 additive
router bgp 1
address-family ipv4 vrf INTERNET
neighbor 10.1.1.1 route-map TEST_ROUTE_POLICY in
end
Any help would be appreciated.
01-29-2025 03:49 AM
Neighbor x.x.x.x send-community both
MHM
01-29-2025 04:18 AM
This command is already in place. I was wondering if an extended community can be set on import or if we should be configuring an export-map?
01-29-2025 04:23 AM
Try clear ip bgp if you add this policy after bgp is established
MHM
01-29-2025 04:30 AM
This has been done also
01-29-2025 08:28 AM
I run lab
R3-R2 there is mpls VPNv4
R1 to R2 there is ebgp
when I add route-map add rt additive with direction IN R2 not add RT
but when I add route-map with direction out toward R3 it work as we need
sorry it not work with IN direction
MHM
01-31-2025 12:31 AM
Can you try in following way? It should modify the route once is under vrf
route-map ADD_RT_IN permit 10
match ip address prefix-list TEST_BGP_IN
set extcommunity rt 31655:2000 additive
vrf definition INTERNET
rd 31655:100
route-target import 31655:2000
route-target export 31655:2000
address-family ipv4
import map ADD_RT_IN
exit-address-family
01-31-2025 02:02 AM
Hello @jay_7301
Based on the configuration you provided, it seems like you are trying to attach an extended community (route target) to a specific subnet learned from a CPE. However, the extended community is not being applied as expected. Here are some troubleshooting steps and considerations to help resolve the issue:
192.168.1.0/24
is actually being received from the neighbor 10.1.1.1
.show ip bgp vpnv4 vrf INTERNET neighbors 10.1.1.1 received-routes
or, if you're working with IPv4 unicast:
show ip bgp neighbors 10.1.1.1 received-routes
192.168.1.0/24
is present in the output.TEST_BGP_IN
is correctly matching the prefix 192.168.1.0/24
.show ip prefix-list TEST_BGP_IN
192.168.1.0/24
is permitted by the prefix-list.TEST_ROUTE_POLICY
is being applied correctly and is matching the prefix.show route-map TEST_ROUTE_POLICY
set extcommunity rt 31655:2000 additive
command is correctly configured in the route-map.additive
keyword ensures that the new extended community is added to any existing communities, rather than replacing them.TEST_ROUTE_POLICY
is applied to the correct neighbor in the correct address family.show running-config | section router bgp
10.1.1.1
under the address-family ipv4 vrf INTERNET
.show ip bgp vpnv4 vrf INTERNET
192.168.1.0/24
and check if the extended community 31655:2000
is attached.debug ip bgp updates
INTERNET
is correctly configured and the neighbor is part of this VRF.If you still face issues after performing these checks, please provide additional details such as the output of the relevant show
commands, and I can assist further!
Hope This Helps!!!
AshSe
Forum Tips:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide