Junpier SRX OSPF: preferring one WAN router over another

In the example blow - Juniper firewall has heard from two WAN routers of a default route via OSPF.
It seems basically happenchance that 13.79.23.63 is the preferred default route. What could I do on the juniper to make 13.79.23.63 to always and purposely be chosen over the .62?

myjuniper> show route
0.0.0.0/0          *[OSPF/150] 1w6d 16:05:01, metric 26, tag 0
                      to 13.79.23.62 via reth0.0
                    > to 13.79.23.63 via reth0.0
LVL 2
amigan_99Network EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JustInCaseCommented:
If you do not want to load balance traffic, on upstream device that is advertising default route change default route cost (e.g 13.79.23.63 - cost 20). Default route will higher metric be removed from routing table, and in the case that primary default route is lost will be inserted back in routing table. As far as I know, if cost is the same Juniper will always randomly pick one path.
0
amigan_99Network EngineerAuthor Commented:
The upstream is a Cisco router. How do I make the the cost of 13.79.23.63 = 20?
0
JustInCaseCommented:
Default metric is 20 (so you may need to lower it):

router ospf x
default-information originate metric 10

You could also change metric type  to E1 and leave cost as it is (default is E2 - option will work only if second router is advertising default route as type 2). Type 1 is preferred over type 2.

default-information originate metric-type 1
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amigan_99Network EngineerAuthor Commented:
Thanks much.
0
JustInCaseCommented:
You're welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Routers

From novice to tech pro — start learning today.