Routes Advertised to OSPF Neighbors | JN0-102 Exam | Juniper Networks Certified Associate Junos

Routes Advertised to OSPF Neighbors

Prev Question Next Question

Question

-- Exhibit --

user@router> show route

inet.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

10.10.10.91/32 *[Direct/0] 00:09:40

>via lo0.0

10.10.10.92/32 *[OSPF/10] 00:01:50, metric 1

>to 172.16.1.2 via ge-0/0/2.0

100.100.1.0/24 *[Static/5] 00:01:50

Reject -

172.16.1.0/24 *[Direct/0] 00:06:09

>via ge-0/0/2.0

172.16.1.1/32 *[Local/0] 00:06:09

Local via ge-0/0/2.0 -

192.168.0.0/16 *[Aggregate/130] 00:00:06

Reject -

192.168.0.0/17 *[Aggregate/130] 00:00:06

>to 172.16.1.2 via ge-0/0/2.0

192.168.50.0/24 *[Static/5] 00:00:06

>to 172.16.1.2 via ge-0/0/2.0

192.168.51.0/24 *[Static/5] 00:00:06

>to 172.16.1.2 via ge-0/0/2.0

user@router> show configuration policy-options

policy-statement demo {

term 1 {

from {

protocol static;

route-filter 192.168.0.0/16 orlonger accept;

}

then accept;

}

}

user@router> show configuration protocols ospf

export demo;

area 0.0.0.0 {

interface ge-0/0/2.0;

}

-- Exhibit --

Given the configuration and routing table shown in the exhibit, which routes will be advertised to OSPF neighbors because of the demo policy?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

Based on the given configuration, the OSPF protocol is configured on the router and the demo policy is applied to advertise specific routes to the OSPF neighbors. The demo policy has a single term that matches the static protocol and a route filter that accepts the routes with the 192.168.0.0/16 network or longer prefix. The "then" statement in the policy accepts the matched routes.

Looking at the routing table, there are multiple routes with different prefixes, and the policy will select only the routes that match the term 1 conditions. Let's analyze each route and see if it matches the policy:

  • 10.10.10.91/32: This route is a directly connected route and is not eligible for policy matching.

  • 10.10.10.92/32: This route is learned via OSPF protocol and is not eligible for policy matching.

  • 100.100.1.0/24: This route is a static route and does not match the condition in the policy. Therefore, it will not be advertised to OSPF neighbors.

  • 172.16.1.0/24: This route is a directly connected route and is not eligible for policy matching.

  • 172.16.1.1/32: This route is a local route and is not eligible for policy matching.

  • 192.168.0.0/16: This route matches the condition in the policy (static protocol and 192.168.0.0/16 or longer prefix). Therefore, it will be advertised to OSPF neighbors.

  • 192.168.0.0/17: This route does not match the condition in the policy (192.168.0.0/16 or longer prefix). Therefore, it will not be advertised to OSPF neighbors.

  • 192.168.50.0/24: This route matches the condition in the policy (static protocol and 192.168.0.0/16 or longer prefix). Therefore, it will be advertised to OSPF neighbors.

  • 192.168.51.0/24: This route matches the condition in the policy (static protocol and 192.168.0.0/16 or longer prefix). Therefore, it will be advertised to OSPF neighbors.

Based on the analysis above, the routes that will be advertised to OSPF neighbors because of the demo policy are 192.168.0.0/16, 192.168.50.0/24, and 192.168.51.0/24. Therefore, the correct answer is option D.