SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Import single static route from inet.0 to another routing-instance

    Posted 11-28-2012 02:59

    I want to import a single route (not all static) from inet.0 to another routing-instance.

     

    I know how to use Rib-Groups for importing the full static routes entries, but dont know how to import single static route!

     

    Regards

    Mahmoud



  • 2.  RE: Import single static route from inet.0 to another routing-instance
    Best Answer

    Posted 11-28-2012 11:44

    Ditch the Rib groups and join the future.  Use the instance-import command under your VR routing options.  You then reference a policy-statement that has all the logic you want.  

     

    For example this will grab my default route from my main table and bring it into whereever i apply this policy-statement

    FW> show configuration policy-options policy-statement Get-1-Static
    term one {
        from {
            instance master;
            protocol static;
            route-filter 0.0.0.0/0 exact;
        }
        then accept;
    }
    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-1-Static;
    }
    

     

    You can still use policy-statments with Rib groups and achieve the same thing.  I just dont like Rib groups once i saw how logical instance-import was.



  • 3.  RE: Import single static route from inet.0 to another routing-instance

    Posted 11-28-2012 19:48

    Thank You.

     

    Can you provide an example for the same but with Rib Groups.

     

    Regards

    Mahmoud



  • 4.  RE: Import single static route from inet.0 to another routing-instance

    Posted 11-29-2012 07:09

    This Thread has a good example

     

    http://www.gossamer-threads.com/lists/nsp/juniper/22857

     

     



  • 5.  RE: Import single static route from inet.0 to another routing-instance

    Posted 01-23-2014 07:31

    this is exactly what i was looking for, a way to import static routes from inet.0 to virtual router instances. it works just as you demonstrated. thanks.