JN0-102 Exam: Answer to Routing Policy Question

Routing Policy Question

Prev Question Next Question

Question

-- Exhibit --

policy-options {

policy-statement example-pol {

term 1 {

from {

protocol static;

route-filter 10.1.0.0/16 exact;

}

then {

preference 6;

accept;

}

}

term 2 {

from {

protocol static;

route-filter 10.1.1.0/24 longer;

}

then {

preference 7;

accept;

}

}

term 3 {

from {

protocol static;

route-filter 10.1.0.0/16 upto /24;

}

then {

preference 8;

accept;

}

}

term 4 {

then accept;

}

}

}

-- Exhibit --

Referring to the exhibit, if the static route with prefix 10.1.1.0/24 is evaluated against the routing policy, which preference value will be set?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

The given exhibit is a Junos policy statement used to control the flow of traffic in the network. The policy statement is named "example-pol" and has four terms defined within it.

Term 1 of the policy statement matches any static route with the exact prefix of 10.1.0.0/16. If a match is found, the preference is set to 6, and the route is accepted.

Term 2 of the policy statement matches any static route with a longer prefix than 10.1.1.0/24. If a match is found, the preference is set to 7, and the route is accepted.

Term 3 of the policy statement matches any static route with a prefix between 10.1.0.0/16 and 10.1.0.0/24 (inclusive). If a match is found, the preference is set to 8, and the route is accepted.

Term 4 of the policy statement is a catch-all term that accepts any route that does not match the previous terms.

To answer the question, if the static route with prefix 10.1.1.0/24 is evaluated against the routing policy, the policy statement will match it against term 2, which allows for a longer prefix than 10.1.1.0/24. Therefore, the preference will be set to 7, as specified in term 2, and the route will be accepted.

So, the correct answer to the question is B. The preference will be 7.