Hi PL2,
While Routers advertise OSPF routes learned from one OSPF neighbor to another OSPF neighbor, they do not automatically advertise routes learned by other routing information sources such as static routes, routes learned by BGP etc. via OSPF.
In order to advertise routes learned by other routing information sources, an explicit routing policy has to be configured and applied at the [edit protocols ospf] hierarchy as an export policy.
Here is an example of an export policy that advertises all statically learned routes to all the OSPF neighbors:
Defining the Routing Policy:
Router1> show configuration policy-options policy-statement export-static-routes
term export-statics {
from protocol static;
then accept;
}
Applying the Routing Policy:
Router1> show configuration protocols ospf export
export export-static-routes;
The above example is very broad such that it advertises all static routes learned by the router, to all of its OSPF neighbors. You can configure a more granular policy where only specific prefixes are advertised to OSPF neighbors. Below is an example that shows the match condition to select specific prefixes and advertise by OSPF:
Defining the Specfic Prefix list:
Router1> run show configuration policy-options prefix-list rfc-1918
10.0.0.0/8;
172.16.0.0/12;
192.168.0.0/16;
Defining the Routing Policy:
Router1> run show configuration policy-options policy-statement export-static-routes
term export-statics {
from protocol static;
prefix-list rfc-1918;
then accept;
}
Applying the Routing Policy:
Router1> show configuration protocols ospf export
export export-static-routes;
Please mark "Accepted Solution" if this helps.
Kudos are always appreciated
HTH
B