Junos OS

last person joined: 2 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  Add rib-group to routing-options

    Posted 07-19-2014 05:19

    Hello ! 

     

    I have such scheme :

    picture.png

     

    Here I need to ping with 1.1.1.1 from 175.25.75.249 (routing-instances GN) .

    I did such connfiguration and it is correct. Pings well.

     

    [edit routing-options]
    root# show 
    interface-routes {
        rib-group inet MATER->GN-static;
    }
    static {
        rib-group MATER->GN-static;
        route 1.1.1.0/24 next-hop 192.168.100.254;
    }
    rib-groups {
        MATER->GN-static {
            import-rib [ inet.0 GN.inet.0 ];
        }
    }

     Now I want to repeat this for routing instance GS .

    So, I add rib-groups MASTER->GS-static . This entry added to config. But when I add 

    set routing-options interface-routes rib-group inet MATER->GS-static

     then previous entry with MASTER->GN disappears

     

    root# show 
    interface-routes {
        rib-group inet MASTER->GS-static;
    }
    static {
        rib-group MATER->GN-static;
        route 1.1.1.0/24 next-hop 192.168.100.254;
    }
    rib-groups {
        MATER->GN-static {
            import-rib [ inet.0 GN.inet.0 ];
        }
        MASTER->GS-static {
            import-rib [ inet.0 GS.inet.0 ];
        }
    }
    

     Why only one interface route rib-group applicable ???



  • 2.  RE: Add rib-group to routing-options

    Posted 07-19-2014 10:12

    Hello,

    Please try the following and report back:

     

    rib-groups {
        MATER->GN-static {
            import-rib [ inet.0 GN.inet.0 GS.inet.0 ];
        }
    }

     HTH

    Thanks

    Alex



  • 3.  RE: Add rib-group to routing-options

    Posted 07-20-2014 10:20

    When i do 

     

    rib-groups {
    MATER->GN-static {
    import-rib [ inet.0 GN.inet.0 GS.inet.0 ];
    }
    }

     then all routes from GN.inet.0 became known and for GS.inet.0.  ( routes from GN follows to GS). But I want to separate this route tables.

     

    Perhaps , I need  to use import/export specific routes  or use  ..next-table



  • 4.  RE: Add rib-group to routing-options

    Posted 07-20-2014 10:29

    Hello,

     


    @vlazarev wrote:

    When i do 

     

    rib-groups {
    MATER->GN-static {
    import-rib [ inet.0 GN.inet.0 GS.inet.0 ];
    }
    }

     then all routes from GN.inet.0 became known and for GS.inet.0.  ( routes from GN follows to GS). But I want to separate this route tables.

     

     




    No, the GN routes should not be injected into GS, only inet.0 interface+static routes will be injected into GN and GS according to Your own config:

     

    [edit routing-options]
    root# show 
    interface-routes {
        rib-group inet MATER->GN-static;
    }
    static {
        rib-group MATER->GN-static;
        route 1.1.1.0/24 next-hop 192.168.100.254;
    }

      Please post the following printouts:

     

    show route table inet.0 | no-more
    show route table GN.inet.0 | no-more
    show route table GS.inet.0 | no-more

     HTH

    Thanks

    Alex



  • 5.  RE: Add rib-group to routing-options

    Posted 07-20-2014 11:28

    (Some changes in names and addresses). 

    picture1.png

     

    [edit routing-options]
    root# show
    interface-routes {
    rib-group inet GN_static;
    }
    static {
    rib-group GN_static;
    route 1.1.1.0/24 next-hop 192.168.100.254;
    }
    rib-groups {
    GN_static {
    import-rib [ inet.0 GN.inet.0 GS.inet.0 ];
    }
    }

    [edit routing-options]
    root#

     

    root# run show route table inet.0     
    
    inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    1.1.1.0/24         *[Static/5] 01:19:00
                        > to 192.168.100.254 via em0.0
    117.117.117.0/24   *[Direct/0] 02:20:38
                        > via em1.0
    117.117.117.1/32   *[Local/0] 02:20:38
                          Local via em1.0
    175.70.20.248/29   *[Direct/0] 01:41:23
                        > via lo0.0
    175.70.20.249/32   *[Local/0] 01:41:23
                          Local via lo0.0
    175.70.20.250/32   *[Direct/0] 01:37:43
                        > via lo0.0
    175.70.20.251/32   *[Direct/0] 01:35:25
                        > via lo0.0
    175.70.20.252/32   *[Direct/0] 01:35:25
                        > via lo0.0
    175.70.20.253/32   *[Direct/0] 01:35:25
                        > via lo0.0
    192.168.100.252/30 *[Direct/0] 02:20:39
                        > via em0.0         
    192.168.100.253/32 *[Local/0] 02:20:39
                          Local via em0.0

     

    root# run show route table GN.inet.0 
    
    GN.inet.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    1.1.1.0/24         *[Static/5] 01:19:48
                        > to 192.168.100.254 via em0.0
    117.117.117.0/24   *[Direct/0] 01:52:25
                        > via em1.0
    117.117.117.1/32   *[Local/0] 01:52:25
                          Local via em1.0
    175.70.20.248/29   *[Direct/0] 02:21:26
                        > via lo0.0
    175.70.20.249/32   *[Local/0] 02:21:26
                          Local via lo0.0
    175.70.20.250/32   *[Direct/0] 01:38:31
                        > via lo0.0
    175.70.20.251/32   *[Direct/0] 01:36:13
                        > via lo0.0
    175.70.20.252/32   *[Direct/0] 01:36:13
                        > via lo0.0
    175.70.20.253/32   *[Direct/0] 01:36:13
                        > via lo0.0
    192.168.100.252/30 *[Direct/0] 01:52:25
                        > via em0.0         
    192.168.100.253/32 *[Local/0] 01:52:25
                          Local via em0.0

     

    root# run show route table GS.inet.0    
    
    GS.inet.0: 13 destinations, 13 routes (13 active, 0 holddown, 0 hidden)
    + = Active Route, - = Last Active, * = Both
    
    1.1.1.0/24         *[Static/5] 01:20:32
                        > to 192.168.100.254 via em0.0
    117.117.117.0/24   *[Direct/0] 01:20:32
                        > via em1.0
    117.117.117.1/32   *[Local/0] 01:20:32
                          Local via em1.0
    172.200.100.248/29 *[Direct/0] 02:22:09
                        > via lo0.1
    172.200.100.249/32 *[Local/0] 02:22:09
                          Local via lo0.1
    175.70.20.248/29   *[Direct/0] 01:20:32
                        > via lo0.0
    175.70.20.249/32   *[Local/0] 01:20:32
                          Local via lo0.0
    175.70.20.250/32   *[Direct/0] 01:20:32
                        > via lo0.0
    175.70.20.251/32   *[Direct/0] 01:20:32
                        > via lo0.0
    175.70.20.252/32   *[Direct/0] 01:20:32
                        > via lo0.0         
    175.70.20.253/32   *[Direct/0] 01:20:32
                        > via lo0.0
    192.168.100.252/30 *[Direct/0] 01:20:32
                        > via em0.0
    192.168.100.253/32 *[Local/0] 01:20:32
                          Local via em0.0

     

     



  • 6.  RE: Add rib-group to routing-options
    Best Answer

    Posted 07-20-2014 12:58

    Hello,

    Thanks for posting the printouts.

    I don't see any evidence of routes being leaked from CN.inet.0 into GS.inet.0.

    Only routes from inet.0 are leaked to GN.inet.0.

    Likewise, only routes from inet.0 are leaked into GS.inet.0.

     

    This is what rib-groups are for:

    - leftmost RIB is the "primary" RIB and it is the source of routes

    - all other RIBs are "secondary" and are route recipients

    - there is no leaking between secondary RIBs in a given RIB group.

     

    You also cross-check the correctness of rib-group operation by doing "show route table <any secondary RIB> extensive" and look for "Primary routing table" and "Secondary tables" fields.

    http://www.juniper.net/techpubs/en_US/junos13.2/topics/reference/command-summary/show-route-extensive.html

     

    Only primary RIB must be listed as "Primary routing table".

     

    If You see anything to the contrary, it's a bug.

    HTH

    Thanks
    Alex