You want to advertise configured static routes to adjacent OSPF neighbors, going beyond the OSPF default of advertising only the routes learned from an OSPF neighbor.
To modify the route advertisement behavior, create and apply a routing policy. First, create the policy:
# set policy-options policy-statement send-statics term 1 from protocol static
# set policy-options policy-statement send-statics term 1 then accept
[Here all Static Route will be advertise and policy statement name is send-statics ]
Then, apply it to OSPF:
# set protocols ospf export send-statics
[It will start work the policy of send-statics ]
Here’s what the policy looks like in the configuration:
# set protocols ospf export send-statics
[It will start work the policy of send-statics ]
Here’s what the policy looks like in the configuration:
[edit]
# show
policy-options {
policy-statement send-statics {
term 1 {
from protocol static;
then accept;
}
}
}
protocols {
ospf {
export send-statics;
}
}