SRX

Expand all | Collapse all

rib import routes

Jump to Best Answer
  • 1.  rib import routes

    Posted 07-31-2017 12:42

    hi 

     

    is it possible to import static routes from one table to another and filter out some routes, in my example I would like to filter out

    default gateway.

     

     

     

    thanks



  • 2.  RE: rib import routes
    Best Answer

     
    Posted 08-01-2017 21:33

    Hi,

     

    Yes absolutely. 

     

    show configuration policy-options policy-statement Get-Static

    term two {
        from {
            instance master;
            protocol static;
            route-filter <IP Address> exact;
        }
        then accept;
    }
    term two {
    from {
    instance master;
    protocol static;
    route-filter 0.0.0.0 exact;
    }
    then reject;
    }

    term LAST {
    then reject;
    }

    [edit routing-instances My-New-VR]
    instance-type virtual-router;
    interface reth0.1
    interface reth0.2
    interface reth0.3
    interface reth0.4
    routing-options {
        instance-import Get-Static;
    }

     

    Kindly go through below KB for more details:

     

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

     

    Regards,

    Anand

    [KUDOS PLEASE! If you think I earned it!

    If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]



  • 3.  RE: rib import routes

    Posted 08-02-2017 15:26

    Hi

     

    I wanted to use rib-groups and use import-rib but this one works good.

     

    Thanks!