04-04-2023 10:21 AM
Following config is not adding communities as under routemap.
any ideas as to why.
I posted some show outputs but it gets blocked as spam. May try to add in next reply.
VRF and routemap names have been changed.
vrf definition xxxxcom
rd 65411:1
route-target export 65411:1120
route-target import 65411:1121
route-target import 64511:1120
!
address-family ipv4
export map export1
exit-address-family
ip prefix-list export1 seq 10 permit 10.10.10.192/27
ip prefix-list export1 seq 20 permit 10.10.10.224/27
ip prefix-list export1 seq 30 permit 10.10.11.192/27
ip prefix-list export1 seq 40 permit 10.10.11.224/27
route-map export1 permit 10
match ip address prefix-list export1
set extcommunity rt 65411:1124 additive
Solved! Go to Solution.
04-04-2023 11:27 AM - edited 04-04-2023 11:37 AM
Hi @micfan ,
Is it possible that you applied/modified the export map after that path was learnt via eBGP?
If so you might need to perform a "clear bgp vrf xxxxcom ipv4 uni 172.29.254.247 soft" to make sure this path is processed via the export map.
Regards,
04-04-2023 10:34 AM - edited 04-04-2023 10:42 AM
I saw it additive keyword.
04-04-2023 10:38 AM
it's there in posted config under routemap export1. Did you miss that in post or am I missing something else?
Thanks for reply!
04-04-2023 10:46 AM
first show command shows export map set
second however does not show the RT being added to route.
sho vrf detail xxxx
VRF xxxxx (VRF Id = 4); default RD 65411:1; default VPNID <not set>
New CLI format, supports multiple address-families
Flags: 0x180C
Interfaces:
deleted
Address family ipv4 unicast (Table ID = 0x4):
Flags: 0x0
Export VPN route-target communities
RT:65411:1120
Import VPN route-target communities
RT:65411:1121 RT:64511:1120 RT:65411:1127
No import route-map
No global export route-map
Export route-map: export1
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
Address family ipv6 unicast not active
Address family ipv4 multicast not active
Address family ipv6 multicast not active
sho ip bgp vpnv4 vrf xxxxcom 10.10.10.192
BGP routing table entry for 65411:1:166.182.113.192/27, version 8272201
Paths: (3 available, best #2, table ustelcom)
Advertised to update-groups:
20 22 45 28
Refresh Epoch 1
omitted to not show public as paths10.10.10.192/27 (global)
10.100.100.62 (metric 310) (via default) from 10.100.100.51 (10.100.100.51)
Origin incomplete, metric 0, localpref 100, valid, internal
Extended Community: RT:65411:1127
Originator: 10.100.100.62, Cluster list: 10.100.100.51
mpls labels in/out 6738/17
rx pathid: 0, tx pathid: 0
Refresh Epoch 1
47009 18933
172.29.254.247 (via vrf xxx) from 172.29.254.247 (10.102.1.138)
Origin incomplete, localpref 100, valid, external, best
Community: 131074 196638 196664 196668 284156
Extended Community: RT:65411:1120
mpls labels in/out 6738/nolabel
rx pathid: 0, tx pathid: 0x0
04-04-2023 11:13 AM
Hi @micfan ,
Is the following path imported from another VRF or is it from the same xxxxcom?
> 172.29.254.247 (via vrf xxx) from 172.29.254.247 (10.102.1.138)
Regards,
04-04-2023 11:15 AM
that route is in the VRF and is best. The first is an imported route to that host from another site that is over MPLS that is second best path.
04-04-2023 11:27 AM
172.29.254.247 (via vrf xxx) from 172.29.254.247 (10.102.1.138)
Origin incomplete, localpref 100, valid, external, best
Community: 131074 196638 196664 196668 284156
Extended Community: RT:65411:1120
mpls labels in/out 6738/nolabel
rx pathid: 0, tx pathid: 0x0
There three paths and best is from vrf not local to this vrf. This make rt appear as I mention below rt import of vrf this prefix learn from.
04-04-2023 11:27 AM - edited 04-04-2023 11:37 AM
Hi @micfan ,
Is it possible that you applied/modified the export map after that path was learnt via eBGP?
If so you might need to perform a "clear bgp vrf xxxxcom ipv4 uni 172.29.254.247 soft" to make sure this path is processed via the export map.
Regards,
04-04-2023 11:38 AM
Thank you harold looks like that is all it was!! I thought this would reset in time on its own.
THanks
04-04-2023 11:40 AM
You are very welcome @micfan and thanks for the feedback
04-04-2023 11:33 AM
Can you remove import RT:65411:1120
From vrf and check community rt again.
04-04-2023 11:18 AM
Show ip bgp vpnv4 10.10.10.192/27
The rt appear is rt import from other vrf not export of xxxxcom
But let be more check
04-04-2023 11:23 AM
no I just didnt scrub the real VRF name. Thats the local VRF and the proper export tag.
I should be more careful posting..
04-04-2023 10:47 AM
show ip bgp vpnv4 vrf xxxxcom 10.10.10.192/27
Can you share this ?
04-04-2023 10:51 AM
I think I shared it as you were asking
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