"Route-target export" is used to export routes form VRF to mBGP - i need to know the rules which tells which routes will be exported.

For example : if VRF-RED have 10 Routes which include static routes, connected routes, OSPF routes and routes it imported from VRF-YELLOW. Now if VRF-RED export and VRF-GREEN import, then which of the 10 VRF-RED's route VRF-GREEN will get?

  • packetlife.net/blog/2013/sep/26/vrf-export-maps may be what you're looking for.
    – cpt_fink
    Sep 21 '19 at 4:44
  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you can post and accept your own answer.
    – Ron Maupin
    Dec 31 '20 at 20:58

It's depends on RT value. If you are using same RT value for VRF-YELLOW , VRF-RED and VRF-GREEN then you will get all the routes in VRF-GREEN. Otherwise, if you are using different RT value for VRF-YELLOW & VRF-RED and different for VRF-RED & VRF-GREEN, you will get all routes except the routes received from VRF-YELLOW.


Don't forget that VPN's depend on the RT's for the import/export policies. RT's are carried with the prefix along the VPNV4 space to identify the origin of the prefix.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.