Routing

Expand all | Collapse all

rib import and export questions

Jump to Best Answer
  • 1.  rib import and export questions

    Posted 02-13-2021 13:07
    I exported some ospf routes from one routing-instanace to inet.0 . but the inet.0 does not populate  them to its neighbors.   Is this supposed to be or I missed something ?

    set routing-options rib-groups Branch12Inet import-rib Branch1.inet.0
    set routing-options rib-groups Branch12Inet import-rib inet.0
    set routing-instances Branch1 protocols ospf rib-group Branch12Inet

    lab@vmx2# run show route 10.150.99.0/24

    inet.0: 248 destinations, 248 routes (246 active, 0 holddown, 2 hidden)
    + = Active Route, - = Last Active, * = Both

    10.150.99.0/24 *[OSPF/150] 01:06:15, metric 1, tag 0
    > via gr-0/0/10.0

    Branch1.inet.0: 21 destinations, 22 routes (21 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both

    10.150.99.0/24 *[OSPF/150] 01:06:15, metric 1, tag 0
    > via gr-0/0/10.0

    But this prefix is not advertised to its neighbor via OSPF.

    thanks !!


  • 2.  RE: rib import and export questions

     
    Posted 02-13-2021 13:24
    With rib-groups  you are installing the routes coming from SPF calculations in both inet.0 and Branch1.inet.0. That does not mean you are going to create LSAs to send to neighbors in inet.0.  It looks something like this: 


    Regards, 


    ------------------------------
    Yasmin Lara
    Juniper Ambassador
    JNCIE-SP, JNCIE-ENT, JNCIE-DC, JNCIE-SEC
    JNCDS-DC, JNCIA-DevOps, JNCIP-CLOUD, CCNP-ENT
    ------------------------------



  • 3.  RE: rib import and export questions

    Posted 02-13-2021 13:32
    thanks so much !!

    Anyway can I advertise this prefix ?
    right now I advertised OSPF to bgp to advertise this prefix to the neighbor router.  Seems kind of ODD.




  • 4.  RE: rib import and export questions
    Best Answer

     
    Posted 02-13-2021 15:12
    You can redistribute the routes into OSPF, or you can connect your routing instance with inet.0 using an lt interface, and remove the rib-group. 

    Here is an example (I only have routing instances, so pretend that vR1 and vR4 are the neighbor routers, vR2 is like your routing instance, and vR3 is like inet.0): 





    Regards, 
    ------------------------------
    Yasmin Lara
    Juniper Ambassador
    JNCIE-SP, JNCIE-ENT, JNCIE-DC, JNCIE-SEC
    JNCDS-DC, JNCIA-DevOps, JNCIP-CLOUD, CCNP-ENT
    ------------------------------



  • 5.  RE: rib import and export questions

    Posted 02-13-2021 15:17
    thanks a million for coaching !!