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?
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 exactset policy-options policy-statement ospf-default term 1 then metric 20set policy-options policy-statement ospf-default term 1 then accept
set protocols ospf export ospf-defaultIf 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 discardPS: Please mark my response as solution if it resolves your query. Kudos are appreciated too!!Thanks