Junos OS

 View Only
last person joined: 5 days ago 

Ask questions and share experiences about Junos OS.
  • 1.  OSPF - Static Routes

    Posted 02-04-2023 20:12
    Edited by spuluka 02-11-2023 13:19

    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.



  • 2.  RE: OSPF - Static Routes

    Posted 02-04-2023 20:13
    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
    ------------------------------



  • 3.  RE: OSPF - Static Routes

    Posted 02-05-2023 08:45
    Hello,
    I don't need to push a default route.
    I need to push static routes into area 0.

    ------------------------------
    Amit Amit
    ------------------------------



  • 4.  RE: OSPF - Static Routes

    Posted 02-05-2023 08:48
    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
    ------------------------------