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

Import VRFs

cassio.gomes
Level 1
Level 1

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

4 Replies 4

barisal
Level 1
Level 1

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...

Thanks ....Good anwser..

Cássio Gomes

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.

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,

Regards,
Harold Ritter, CCIE #4168 (EI, SP)