Routing

last person joined: yesterday 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  How to export into two VRF from inet.0 with two different policy

    Posted 11-18-2018 21:00

    Hi All

     

     As the subject.

    I know rib-import will export routes into multi VRFs with one import polciy, but now we wish that the routes of inet.0 could be imported into two VRF.inet.0 by two different policy.

     

    Like as below scenarios :

    Inet.0 export static/bgp routes with community 1111:400 into VRF1

    inet.0 export direct,and bgp routers with community 1111:401 into VRF2

     

    Is it possible to reach it ?

     

    Thanks

    Cloud


    #rib-group


  • 2.  RE: How to export into two VRF from inet.0 with two different policy

    Posted 11-18-2018 21:05
    You can try instance import with the policy and check if it works.


  • 3.  RE: How to export into two VRF from inet.0 with two different policy

    Posted 11-18-2018 22:15

    Hi Kongsman

     

    But using import-policy will only filter by only one policy as follow.

    HKG_MAIN {
    import-rib [ inet.0 INTERNAL.inet.0 EXTERNAL.inet.0 ];
    import-policy HKG_MAIN-TO-VRF;
    }

     

    I wish two vrf get different routes from inet.0, So need to have another way to reach it .

     

    Best regards,

    Cloud



  • 4.  RE: How to export into two VRF from inet.0 with two different policy
    Best Answer

    Posted 11-19-2018 03:07

    You can create separate virtual interfaces called logical tunnels from each vrf to the inet.0 routing instance.  Then using these logical interfaces you can setup any specific export/import policy you need.

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB21260

     



  • 5.  RE: How to export into two VRF from inet.0 with two different policy

    Posted 11-20-2018 02:08

    Hi Steve

     

    That's a another way to solve. I also have one way that let main table establish iBGP with VRF .

    And then export routes what I would like. But I don't like it.

     

    Anyway, I will think which is the best for my enviroment.

     

    Thanks Kingsman and Steve.

    Cloud