Configuring Static Routes to Avoid Redistribution

Static Routes for Marketing Team's Server Access

Prev Question Next Question

Question

The marketing team needs access to a server on a subnet 172.0.46.0/24. The next-hop router is 10.0.4.2/30. A static route on their gateway has been configured to accomplish the task. You want to keep the static route from being redistributed into dynamic routing protocols.

Which command will satisfy this requirement?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

The correct answer is D. Set routing-options static route 172.0.46.0/24 next-hop 10.0.4.2/30 no-redistribute.

Explanation:

To allow the marketing team access to the server on the subnet 172.0.46.0/24, a static route has been configured on their gateway with the next-hop router of 10.0.4.2/30.

Static routes are routes that are manually configured by a network administrator and are not learned or exchanged with other routers using dynamic routing protocols such as OSPF or BGP.

When a router is configured with a static route, by default, the static route is redistributed into dynamic routing protocols and advertised to other routers in the network. However, in this scenario, the requirement is to keep the static route from being redistributed into dynamic routing protocols.

The command "set routing-options static route 172.0.46.0/24 next-hop 10.0.4.2/30 no-redistribute" accomplishes this requirement. The "no-redistribute" parameter ensures that the static route is not advertised or redistributed to other routers in the network using dynamic routing protocols.

Option A, "no-resolve," prevents the router from resolving the next-hop IP address to its hostname, but does not prevent the static route from being redistributed into dynamic routing protocols.

Option B, which is the standard syntax for configuring a static route, does not prevent the static route from being redistributed into dynamic routing protocols.

Option C, "no-readvertise," prevents the static route from being readvertised to other routers within the same routing domain, but does not prevent the static route from being redistributed into dynamic routing protocols.

Therefore, the correct answer is D. Set routing-options static route 172.0.46.0/24 next-hop 10.0.4.2/30 no-redistribute.