cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3674
Views
0
Helpful
7
Replies

export map on a vrf

balavenkata
Level 1
Level 1

With the following config, does it export only the 10.2.3.3/32 route with

the 114.3.1.1:4 RT set ? Or does all routes from the vrf get exported

(because there is no set extcommunity statement below the

route-map) ?? My intention is to export only that route from the vrf..

ip vrf bv_1.135_fe.0.0.112-Hub

rd 135:5

export map bv_1.135_fe.0.0.112

route-target export 114.3.1.1:4

route-target import 114.3.1.1:5

route-map bv_1.135_fe.0.0.112 permit 1

match ip address prefix-list bv_EVpn1-bv_1.135_fe.0.0.112-Hub

ip prefix-list bv_EVpn1-bv_1.135_fe.0.0.112-Hub seq 1 permit 10.2.3.3/32

Thanks !

/bala

7 Replies 7

Harold Ritter
Cisco Employee
Cisco Employee

Bala,

if you only want the route-map to select and export the one specific prefix, you need to remove "route-target export 114.3.1.1:4" from under the ip vrf configuration and then add "set extcommunity rt 114.3.1.1:4" under the route-map.

Otherwise all prefixes will be exported with this specific RT, whether or not they match the route-map.

Hope this helps,

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

Actually, even with the config I suggested, other prefixes will also be exported but without any RT, which will cause them not to be imported anywhere else.

Hope this helps,

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

p.danielsen
Level 1
Level 1

Hi Bala,

try looking at this configuration, it uses access-lists insted of a prefix-list, but it works ..

ip vrf ES

rd 12345:10040

export map ES

route-target export 12345:10040

route-target import 12345:10040

!

route-map ES permit 10

match ip address 20

set extcommunity rt 12345:10053 additive

!

access-list 20 permit 172.40.1.0 0.0.0.255

Hope i helps you.

/Peter

Peter,

Your configuration adds an extra RT for that one specific prefix that you specify under the route-map but doesn't prevent all of the other prefixes to be tagged and exported with the RT value configured under "ip vrf ES"

Cheers,

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

Hi,

if your intention is to only export a specific network from a VRF, why not to use filters during redistribution and not to insert other networks into MP-BGP?

Regards, Martin

Martin-

The intent is this: the VRF hosts a management site and our customer wants to export only specific routes from the management hub site to the spokes....enough for them to get to the mgmt site. We had cupla options - using ACLs vs prefix-list and chose the prefix list per customer request due to perf reasons (see my last post).

I;m curious to know how you'd control this via redistribution. So under my PE-CE redistribution to my mgmt site, I'd then have to throw away 'other routes' ? I'd end up using route-map there too right ? it'd just be a different place (instead of "export map" under my "ip vrf" then it'd be under say my "router bgp" ??)

Thanks !

/bala

To add to that, I got the impression from our customer that prefix-lists have better performance than access-lists ("uses lesser CPU cycles" is the actual quote though I wonder why....maybe a separate topic)

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: