Wednesday, November 22, 2017

Juniper L3 VPN/MPLS VRF export policies

Hi All

Wondering if someone can assist with a VRF export issue I am having. I wish to only export the 27.144.1.40/29 network. Below is the config:

set policy-options policy-statement VRF-Export-Policy term 1 from route-filter 27.144.1.40/29 exact accept

set policy-options policy-statement VRF-Export-Policy term 1 then reject

set routing-instances VRF vrf-export VRF-Export-Policy

However, when I import this VRF on another PE into another VRF using the below import policy:

set policy-options community Grey-VRF members target:64000:666

set policy-options community Cust1-VRF members target:64000:777

set policy-options policy-statement VRF-Import-Policy term 1 from community Grey-VRF

set policy-options policy-statement VRF-Import-Policy term 1 from community Cust1-VRF

set policy-options policy-statement VRF-Import-Policy term 1 then accept

set routing-instances Cust1-VRF vrf-import VRF-Import-Policy

No routes are being learnt. However, when I don't apply a VRF export policy, all routes are being learnt. How do I go about filtering a specific route on an export policy?

Thanks



No comments:

Post a Comment