Skip to Content

Juniper JN0-351: What does the ‘interface-routes’ statement do in the Juniper routing-options configuration?

The ‘interface-routes’ statement in Juniper routing-options imports only direct interface routes from inet.0 into the specified RIBs like first.inet.0 and second.inet.0. It does not import all route types.

Table of Contents

Question

[edit routing-options]
user@router# show 
interface-routes { 
rib-group inet group-name;
 }
rib-groups { 
group-name { 
import-rib [ inet.0 first.inet.0 second.inet.0 ];
}
}

Which statement is correct about the exhibit?

A. Only the interface routes from inet.0 will be imported into both first.inet.0 and second.inet.0.
B. All routes from inet.0 will be imported into first.inet.0 and second.inet.0.
C. Only the interface routes from first.inet.0 and second.inet.0 will be imported into inet.0.
D. All the routes from first.inet.0 and second.inet.0 will be imported into inet.0.

Answer

The correct answer is A. Only the interface routes (also known as direct routes) from the inet.0 routing table will be imported into both the first.inet.0 and second.inet.0 routing tables.

Explanation

The ‘interface-routes’ statement under ‘routing-options’ is used to leak only the interface routes, not all route types, from one routing table into other routing tables. Interface routes are routes to directly connected subnets on the router’s interfaces.

The ‘rib-group’ statement assigns this policy to a group named ‘group-name’. Then under ‘rib-groups’, it specifies that for the group ‘group-name’, the interface routes from inet.0 should be imported into the RIBs first.inet.0 and second.inet.0.

So in summary, this configuration will take only the interface routes in inet.0 and copy them into first.inet.0 and second.inet.0. No other route types like static routes, OSPF, BGP etc. from inet.0 will be copied over. And routes from first.inet.0 and second.inet.0 are not being imported back into inet.0.

The key point is that ‘interface-routes’ selects only interface/direct routes, not all routes. To leak all routes, you would use the ‘import-rib’ statement directly under ‘routing-options’ without using ‘interface-routes’.

Juniper JN0-351 certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the Juniper JN0-351 exam and earn Juniper JN0-351 certification.