JN0-102 · Question #117
Which command will apply a policy to redistribute static routes into OSPF?
The correct answer is B. set protocols ospf export static-routes. To redistribute static routes into OSPF, an export policy must be configured under the OSPF protocol settings.
Question
Which command will apply a policy to redistribute static routes into OSPF?
Options
- Aset protocols ospf import static-routes
- Bset protocols ospf export static-routes
- Cset routing-options static defaults readvertise
- Dset routing-options static route 0.0.0.0/0 readvertise
How the community answered
(53 responses)- A9% (5)
- B74% (39)
- C4% (2)
- D13% (7)
Why each option
To redistribute static routes into OSPF, an export policy must be configured under the OSPF protocol settings.
The `import` keyword is used for importing routes into the local routing table from OSPF, not for redistributing local routes into OSPF.
The `set protocols ospf export static-routes` command is used to configure an export policy that specifies which routes, including static routes, should be advertised from the local routing table into the OSPF domain. OSPF uses export policies to control the redistribution of routes learned from other protocols or configured locally into its own routing advertisements.
This command sets a default readvertise option for static routes, but it is not directly related to configuring an OSPF export policy to include these routes.
This command attempts to readvertise a specific default static route, but the correct mechanism for redistributing static routes into OSPF is an export policy under the OSPF protocol configuration.
Concept tested: OSPF static route redistribution
Source: https://www.juniper.net/documentation/us/en/software/junos/routing-protocols/topics/topic-map/ospf-policy-overview.html
Topics
Community Discussion
No community discussion yet for this question.