cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1486
Views
2
Helpful
14
Replies

mpls export map under vrf not working

micfan
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

View solution in original post

14 Replies 14

I saw it additive keyword.

 

it's there in posted config under routemap export1.  Did you miss that in post or am I missing something else?

Thanks for reply!

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

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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.

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.

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,

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thank you harold looks like that is all it was!!  I thought this would reset in time on its own.

THanks

 

 

You are very welcome @micfan and thanks for the feedback

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Can you remove import RT:65411:1120

From vrf and check community rt again.

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 

no I just didnt scrub the real VRF name.  Thats the local VRF and the proper export tag.

I should be more careful posting..

show ip bgp vpnv4 vrf xxxxcom 10.10.10.192/27

Can you share this ? 

I think I shared it as you were asking