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.

  1. Export static routes using a routing policy specifying static routes.
    • set policy-options policy-statement exportstatic term exportstatic from protocol static
  2. Set the routing policy term to accept the routes.
    • set policy-options policy-statement exportstatic term exportstatic then accept
  3. Import the routes into OSPF.
    • set protocols ospf export exportstatic

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Back To Top