SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  importing OSPF into routing instance?

    Posted 12-15-2015 19:40

    I have a secondary routing instance created such that a specified source range gets a different default gateway. How would i go about importing OSPF routes into this new instance?  OSPF imports correctly in the primary instance. Heres the config so far:

     

    set interfaces vlan unit 10 family inet filter input via-HQ
    set firewall family inet filter via-HQ term 0 from source-addr 10.1.1.0/24
    set firewall family inet filter via-HQ term 0 then routing-instance 2nd-router
    set firewall family inet filter via-HQ term 1 then accept
    set routing-instances 2nd-router instance-type forwarding
    set routing-instances 2nd-router routing-options static route 0.0.0.0/0 next-hop 192.168.2.1
    set routing-options interface-routes rib-group inet 2nd-router
    set routing-options rib-groups 2nd-router import-rib [inet.0 2nd-router.inet.0]

     

    This is on an SRX 240 running 12.1



  • 2.  RE: importing OSPF into routing instance?
    Best Answer

     
    Posted 12-15-2015 20:02



        Configure a routing policy under the policy-options:

        root@idp-fw# show policy-options
        policy-statement ospf-routes {
            term 1 {
                from {
                    instance default;
                    protocol ospf;
                }
                then accept;
            }
            term 2 {
                then reject;
            }
        }

    refer to this policy under the instance-import option of the routing instance:

        [edit]
        root@ipd-fw# set routing-instance Instance-name routing-options   instance-import ospf-routes;

        This imports all the OSPF routes from inet.0 table to the VR.  . YOu may specify the specific routes under policy-options

     

     

    Refer below KB for more details.

     

    http://kb.juniper.net/InfoCenter/index?page=content&id=KB19787&actp=RSS&smlogin=true