SRX

 View Only
last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  Adding Administrative distance to OSPF routes?

    Posted 09-16-2019 13:31

    I have two SRX Routers on my edge, each to a different ISP.

    Router 1 has a 10G internet connection

    Router 2 has a 1G internet connection. 

    Router 1 publishes 0.0.0.0 via OSPF

     

    My campus router see's the published route and the users on the campus use it for internet.

     

    I'd like to publish 0.0.0.0 via OSPF on router 2 as well, but give it a higher administrive distance so that the campus router prefers the 10G internet circut over the 1G.  

     

    Is it possible to add AD to a ospf route?  Am i going about this all wrong?



  • 2.  RE: Adding Administrative distance to OSPF routes?
    Best Answer

     
    Posted 09-16-2019 19:19

    Hi Munozj,

     

    You can advertise the default route into OSPF network via an export policy. You can add metric to the default route via the policy.  Refer the example below

     

    set policy-options policy-statement ospf-default term 1 from route-filter 0.0.0.0/0 exact
    set policy-options policy-statement ospf-default term 1 then metric 20
    set policy-options policy-statement ospf-default term 1 then accept


    set protocols ospf export ospf-default

    If you don't have default route already in the routing table, please add following route first. 

     

    set routing-options aggregate route 0.0.0.0/0 discard

    PS: Please mark my response as solution if it resolves your query. Kudos are appreciated too!!

    Thanks

    Vishal