-- Exhibit --
[edit policy-options]
user@router# show
policy-statement my-policy {
term 1 {
from {
route-filter 172.27.0.0/24 longer;
}
}
then reject;
}
-- Exhibit --
Which statement is correct about the policy shown in the exhibit?
Click on the arrows to vote for the correct answer
A. B. C. D.B
The policy shown in the exhibit is a policy-statement named "my-policy" defined under the policy-options hierarchy level. This policy is used to apply a specific routing policy to incoming routes. Let's break down the policy configuration and analyze what it does:
pythonterm 1 { from { route-filter 172.27.0.0/24 longer; } then reject; }
term 1
: This term is used to define a specific condition under which the policy will take action. In this case, there is only one term defined.from
: This statement specifies the criteria that the incoming route must meet to match the term. In this case, the route-filter
statement is used to match all routes that are more specific than the 172.27.0.0/24 network prefix.then
: This statement specifies the action that the policy will take if the incoming route matches the term. In this case, the action is to reject
the route, which means that the route will be discarded and not installed in the routing table.Given this configuration, we can determine the correct statement about the policy:
Therefore, the correct answer is option B: All routes are rejected.