SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Inject BGP route into routing instance

    Posted 10-26-2013 00:05

    Hey folks,

    I receive routes from a number of different BGP peers, and I'm looking for a way inject a select few of them into a virtual-routing instance.  I've been able to get static, direct, and ospf routes to import, but I've had no such luck with BGP.

     

    dscott@SRX-650> show configuration routing-options rib-groups to-instance-isp2 
    import-rib [ inet.0 VR_ISP2.inet.0 ];
    import-policy MAIN-TO-ISP2;

     

    dscott@SRX-650> show configuration policy-options policy-statement MAIN-TO-ISP2 
    term Main_static {
        from {
            protocol static;
            route-filter 10.0.0.0/20 exact;
        }
        then accept;
    }
    term Main_BGP {
        from {
            protocol bgp;
            route-filter 10.11.80.0/20 exact;
        }
        then accept;
    }
    term reject {
        then reject;
    }
    

     

    dscott@SRX-650> show configuration routing-instances VR_ISP2  
    instance-type virtual-router;
    interface reth7.0;
    routing-options {
        static {
            route 0.0.0.0/0 next-hop x.x.x.x;
        }
        instance-export MAIN-TO-ISP2;
    }

     I think the problem I'm having is not knowing where/how to set the BGP appropriate version of something like "set protocols ospf rib-group to-instance-isp2"

     

    Thanks,

    Dustin



  • 2.  RE: Inject BGP route into routing instance
    Best Answer

    Posted 10-26-2013 02:51

    Hello,

     

    There are 2 ways to do that:

     

    1/ use "instance-import" under [edit routing-instances <VRname> routing-options] with appropriate policy.

    In the policy itself, specify FROM which instance You wnat the BGP routes to be injected into your VR.

    If it is GRT/inet.0, use "from instance master" in the policy term.

     

    2/ See http://forums.juniper.net/t5/Routing/Export-rib-clarification/td-p/213897

     

    HTH

    Thanks
    Alex



  • 3.  RE: Inject BGP route into routing instance

    Posted 10-26-2013 09:14

    Thanks for the quick reply, Your first option worked great.  The only thing I hadn't tried was to specify "from instance master" in the policy term.

     

    Thanks again.

     

    Dustin