JNCIA-Junos: Juniper Networks Certified Associate – Junos (legacy) — Question 15
-- Exhibit --
[edit policy-options]
user@router# show
policy-statement block-routes {
term 1 {
from {
route-filter 172.27.0.0/24 longer;
}
then reject;
}
term 2 {
then accept;
}
}
-- Exhibit --
You are asked to ensure that your device does not accept any prefixes within the 172.27.0.0/24 network. You have applied the policy shown in the exhibit, but the
172.27.0.0/24 route is still present on your device.
Which configuration will resolve this problem?
Answer options
- A. [edit policy-options policy-statement block-routes] user@router# set term 1 from route-filter 172.27.0.0/24 orlonger
- B. [edit policy-options policy-statement block-routes] user@router# set term 1 from route-filter 172.27.0.0/24 upto /30
- C. [edit policy-options policy-statement block-routes] user@router# set term 2 from route-filter 172.27.0.0/24 longer
- D. [edit policy-options policy-statement block-routes]
Correct answer: A
Explanation
The correct answer is A, as it specifies 'orlonger', which ensures that all prefixes equal to or longer than /24 are rejected. Option B limits the rejection to routes up to /30, which does not cover all longer prefixes. Option C incorrectly modifies term 2, which does not affect the intended rejection of the specified network. Option D does not provide any configuration to resolve the issue.