Sorry for the confusion, on the device where the static routes exist you would create a routing policy and apply this to OSPF.
set policy-options policy-statement exportstatic1 term exportstatic1 from protocol static
set policy-options policy-statement exportstatic1 term exportstatic1 then accept
set protocols ospf export exportstatic1
full example and explanation here
https://www.juniper.net/documentation/us/en/software/junos/ospf/topics/topic-map/configuring-ospf-routing-policy.html#id-example-redistributing-static-routes-into-ospf------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home------------------------------
Original Message:
Sent: 02-05-2023 02:45
From: amit
Subject: OSPF - Static Routes
Hello,
I don't need to push a default route.
I need to push static routes into area 0.
------------------------------
Amit Amit
Original Message:
Sent: 02-04-2023 20:13
From: spuluka
Subject: OSPF - Static Routes
To push a default route into stub ares or nssa just add the default-route parameter to the configuration of the area on the ABR MX.
https://www.juniper.net/documentation/en_US/junos/topics/reference/configuration-statement/default-metric-edit-protocols-ospf.html
------------------------------
Steve Puluka BSEET - Juniper Ambassador
IP Architect - DQE Communications Pittsburgh, PA (Metro Ethernet & ISP - Retired)
http://puluka.com/home
Original Message:
Sent: 02-04-2023 12:23
From: amit
Subject: OSPF - Static Routes
Hello,
I have multiple MX204 routers with OSPF areas.
All the routers are connected to area 0 and each router is connected to different NSSA areas.
The reason for multiple areas is route summarization.
I am trying to inject static routes from router A into just area 0 to the rest of the routers.
I've tried creating an export policy with the `to area 0` condition, but no static routes were exported.
I would appreciate help in completing this.
------------------------------
AMIT AMAR
------------------------------