The following is how to export Static Routes to OSPF using Juniper routers and switches. Enter the following in the CLI using the console or SSH.
- Export static routes using a routing policy specifying static routes.
- set policy-options policy-statement exportstatic term exportstatic from protocol static
- Set the routing policy term to accept the routes.
- set policy-options policy-statement exportstatic term exportstatic then accept
- Import the routes into OSPF.
- set protocols ospf export exportstatic