Routing

 View Only
last person joined: 3 days ago 

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.  Route leaking BGP learned routes from VRF into global inet.0

    Posted 03-29-2010 03:40

    I am trying to leak eBGP learned routes from a VRF to the global inet.0 table. I have tried creating a rib-group with import-rib set to the VRF.inet.0 and inet.0. However, I am struggling to get this to work.

     

    From what I have been able to find, the configuration needed would be something like the following (for a VRF named vpna):

    routing-options {

    rib-groups {

    from-ACS-to-global {

    export-rib vpna.inet.0;

    import-rib [ vpna.inet.0 inet.0 ];

    }

    }

    }

    ..

    routing-instances {

    vpna {

    instance-type vrf;

    ..

    routing-options {

    interface-routes {

    rib-group inet from-ACS-to-global;

    }

    ..

     

    }

    protocols {

    bgp {

    local-address 10.1.0.1;

    family inet {

    unicast {

    rib-group from-ACS-to-global;

    }

    }

    }

    }

    }



  • 2.  RE: Route leaking BGP learned routes from VRF into global inet.0

    Posted 04-11-2010 18:07

    Diggers,

     

    You're on the right track. But you will need to reference your rib group under the [ routing-instances vpna protocols bgp ] stanza.

     

    Basically a rib-group is a macro that copies routes from one place to multiple places.  You have to reference the rib-group in a place where a process would normally install the routes into the routing table.  Think of it this way:  you have to put the rib-group in the way of a place where JUNOS would normally propagate routes into a routing table.

     

    So, if you want routes learned from a PE-CE BGP session, you will need to extend the BGP route installation to copy routes not only into vpna.inet.0, but also to inet.0. 


    ex:

    [edit]

    routing-options {

       rib-groups {

          test {

             import-rib [ vpna.inet.0 inet.0 ];

          }

       }

    }

    [edit]

    routing-instances {

       vpna {

          instance-type vrf;

          interface fe-1/0/0.0;

          route-distinguisher 10.255.14.175:3;

          vrf-import vpna-import;

          vrf-export vpna-export;

          protocols {

             bgp {

                group vpna-site1 {

                family inet {

                   unicast {

                      rib-group test;

                   }

                }

                peer-as 1;

                neighbor 192.168.197.141;

             }

         }

    }

     

    In your example, you applied the rib-group to [ edit routing-instances vpna routing-options interface-routes ], which would take any directly-connected interface routes in the vpna instance and send them into the rib-group. 



  • 3.  RE: Route leaking BGP learned routes from VRF into global inet.0

    Posted 08-21-2012 22:51

    Does the command "export-rib" isn't value reality ?