08-28-2010 07:07 AM - edited 03-04-2019 09:34 AM
Hi All,
I have a VRF with number of routes originated from CE side. I want to do a selective distribution of CE routes with VRFs for two way communication. For better clarity, lest consider three VRFS : VRF-GREEN, VRF-RED and VRF-BLUE at PE. VRF-BLUE is connected to CE and have routes for data (172.234.90.0/24) and video(176.232.56.0/24) service. I want to distrbute VRF-BLUE data routes(172.234.90.0/24) with VRF-GREEN and video routes (176.232.56.0/24) with VRF-RED. How to control such granular distrbution of routes amongst VRFs? Can we deploy multiple export-maps per VRF ?
Any hint/suggestion would be of great help.
Solved! Go to Solution.
08-28-2010 05:39 PM
You can use multiple sequences within a single route-map to attach different RTs to different routes. For example:
ip prefix-list VIDEO seq 10 permit 176.232.56.0/24
!
ip prefix-list DATA seq 10 permit 172.234.90.0/24
!
route-map export-map permit 10
match ip address prefix-list VIDEO
set extcommunity rt 65535:100 [additive]
!
route-map export-map permit 10
match ip address prefix-list DATA
set extcommunity rt 65535:200 [additive]
!
ip vrf VRF-BLUE
export map export-map
!
Then in VRF-GREEN you import RT 65535:200 and in VRF-RED you import 65535:100. To ensure two way reachability you have to import in VRF-BLUE routes from both VRF-GREEN and VRF-RED.
Atif
08-28-2010 05:39 PM
You can use multiple sequences within a single route-map to attach different RTs to different routes. For example:
ip prefix-list VIDEO seq 10 permit 176.232.56.0/24
!
ip prefix-list DATA seq 10 permit 172.234.90.0/24
!
route-map export-map permit 10
match ip address prefix-list VIDEO
set extcommunity rt 65535:100 [additive]
!
route-map export-map permit 10
match ip address prefix-list DATA
set extcommunity rt 65535:200 [additive]
!
ip vrf VRF-BLUE
export map export-map
!
Then in VRF-GREEN you import RT 65535:200 and in VRF-RED you import 65535:100. To ensure two way reachability you have to import in VRF-BLUE routes from both VRF-GREEN and VRF-RED.
Atif
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