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

VRF Export maps - I need to export same subnet from one VRF to multiple other VRF's

pstebner10
Level 1
Level 1

I have written up an example of something I am trying to achieve on a 7606. Basically, I have one VRF from which I need to export a subnet into multiple other VRF's. I am using export maps under the VRF definitions. Attempting it this way, the subnet will get imported into the first VRF listed in the route-map, but not the second, even when I use a continue statement. Here is my example. I have excluded the BGP config as I don't think it's relevant here.

 

ip vrf VRF1
rd100:1
export map VRF1_EXPORT
route-target import 100:1
route-target export 100:1

ip vrf VRF2
rd 200:1
export map VRF2_EXPORT
route-target import 200:1
route-target export 200:1

ip vrf VRF3
rd 300:1
export map VRF3_EXPORT
route-target import 300:1
route-target export 300:1

ip access-list standard VRF1_to_VRF2
permit 10.0.0.0 0.0.0.255
permit 192.168.20.0 0.0.0.255

ip access-list standard VRF1_to_VRF3
permit 10.0.0.0 0.0.0.255

route-map VRF1_EXPORT permit 10
 match ip address VRF1_to_VRF2
 set extcommunity rt 200:1 additive
 continue
route-map VRF1_EXPORT permit 20
 match ip address VRF1_to_VRF3
 set extcommunity rt 300:1 additive
 continue
route-map VRF1_EXPORT permit 30

 

 

if I l do a sh "ip route vrf VRF2" I will see both prefixes from VRF1, but "sh ip route vrf VRF3" shows nothing.

I assume that there is a better way to do this, so thanks in advance for any and all assistance.

 

thanks,

Paul

0 Replies 0
Review Cisco Networking products for a $25 gift card