05-06-2005 05:01 AM
Hi All.
I have two routers PE connected. In the first one I have two VRFs and second one I have two VRFs too.
In the PE1 and PE2 I have VRF CPD01 and NOC01.
In the VRF NOC01 I have five routes
I need to export only one route from NOC01 to VRF CPD01.
What the better solution to VRF CPD01 int PE1 and PE2 to receive your owner routes and the specific route X.X.X.Y/24 from VRF NOC in the PE1.
Thanks
Cássio Gomes
05-06-2005 05:31 AM
Hi,
You may achieve this via using route-maps and export map under vrfs. Write down a standart ACL to match the related IP block. And route-map that matches this ACL. set extended community to owner VPN and the other VPN. And apply this route-map as "export-map xxxx" under the related VPN. Such as;
ip vrf A
export-map traffic-management
rd BG_ID:100
route-target import BG_ID:100
route-target export BG_ID:100
route-target import BG_ID:200
!
ip vrf B
rd BG_ID:200
route-target import BG_ID:200
route-target export BG_ID:200
!
ip access-list standart traffic
permit 10.0.0.0 0.0.0.255
!
route-map traffic-management permit 10
match ip address traffic
set extcommunity rt BG_ID:200
!
Hope this helps...
05-06-2005 05:59 AM
Thanks ....Good anwser..
Cássio Gomes
05-06-2005 06:36 AM
Hi,
I have forgot to tell that the related subnet must be routed statically through CE interface so that route-map can match the network.
Regards,
Baris.
05-06-2005 08:07 AM
Just as a clarification, you don't need a static route if the route is learnt dinamically from the CE.
The route would just be exported from one VRF to the another then.
Hope this helps,
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