vMX

Expand all | Collapse all

rib-import question

  • 1.  rib-import question

    Posted 10-31-2020 18:02

    I have the following routing tables with vr.inet.0 imported into inet.0

    root@vMX-CE1# run show route

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

    10.10.111.0/24 *[Direct/0] 08:52:25
    > via ge-0/0/2.111
    10.10.111.1/32 *[Local/0] 08:52:26
    Local via ge-0/0/2.111
    10.10.112.0/24 *[Direct/0] 08:52:25
    > via ge-0/0/2.112
    10.10.112.1/32 *[Local/0] 08:52:26
    Local via ge-0/0/2.112
    140.140.0.0/14 *[Direct/0] 00:16:31
    > via ge-0/0/0.0
    140.142.41.100/32 *[Local/0] 00:16:31
    Local via ge-0/0/0.0

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

    140.140.0.0/14 *[Direct/0] 02:49:13
    > via ge-0/0/0.0
    140.142.41.100/32 *[Local/0] 02:49:13
    Local via ge-0/0/0.0

     

    I configured as follows:

    root@vMX-CE1# show routing-options
    rib-groups {
      test {
        import-rib [ inet.0 vr.inet.0 ];
      }
    }

    set routing-instances vr routing-options interface-routes rib-group inet test

    my question is

    import-rib [ inet.0 vr.inet.0 ] should be this ?

    or

    import-rib [ vr.inet.0 inet.0] should be this ?

    What is the difference ?

    I can't see any difference in the routing tables.

     

    thanks for any insight in advance !!



  • 2.  Re: rib-import question

    Posted 10-31-2020 18:43
    Specify the name of the routing table into which Junos OS should import routing information. The first routing table name you enter is the primary routing table. Any additional names you enter identify secondary routing tables. When a protocol imports routes, it imports them into the primary and any secondary routing tables

     

    So , in your case configuration should be

    import-rib [ inet.0 ]

     



  • 3.  Re: rib-import question

    Posted 11-01-2020 02:12

    Maybe this will help - I found it very well described 🙂

     

    https://kb.juniper.net/InfoCenter/index?page=content&id=KB16133&actp=METADATA

     

    The next one is, in general, a "source of inspiration" 🙂 

     

    https://momcanfixanything.com/junos-rib-groups-1-2/

     

    BR,
    Andrei 



  • 4.  Re: rib-import question

    Posted 11-01-2020 07:21

    thanks for information!

    What I like to know is whether the order matters. In my lab shown above, the routing table stays the same after I re-order the import.

     

    thanks !!



  • 5.  Re: rib-import question

    Posted 11-01-2020 07:57

    thanks !   I tested in my lab.  Maybe the interfaces-routes is not good choice for my initial test.