350-401 · Question #623
A network engineer is configuring OSPF on a router. The engineer wants to prevent having a route to 177.16.0.0/16 learned via OSPF. In the routing table and configures a prefix list using the command
The correct answer is A. distribute-list prefix OFFICE in under the OSPF process B. ip prefix-list OFFICE seq 10 permit 0.0.0.0/0 Ie 32. To prevent a specific route from being learned via OSPF while allowing others, a deny entry in a prefix list must be applied as an inbound distribute-list, and a permit all entry must be added to the prefix list to avoid implicitly denying all other routes.
Question
Options
- Adistribute-list prefix OFFICE in under the OSPF process
- Bip prefix-list OFFICE seq 10 permit 0.0.0.0/0 Ie 32
- Cip prefix-list OFFICE seq 10 permit 0.0.0.0/0 ge 32
- Ddistribute-list OFFICE out under the OSPF process
- Edistribute-list OFFICE in under the OSPF process
How the community answered
(15 responses)- A47% (7)
- C33% (5)
- D7% (1)
- E13% (2)
Why each option
To prevent a specific route from being learned via OSPF while allowing others, a `deny` entry in a prefix list must be applied as an inbound distribute-list, and a `permit all` entry must be added to the prefix list to avoid implicitly denying all other routes.
The `distribute-list prefix OFFICE in` command, applied under the OSPF router configuration, instructs the OSPF process to filter incoming routing updates using the `OFFICE` prefix list, thereby preventing the `172.16.0.0/16` route from being installed into the routing table.
Prefix lists have an implicit `deny all` at the end; therefore, to ensure that routes other than `172.16.0.0/16` are still permitted and learned, an explicit `permit 0.0.0.0/0 le 32` entry must be added to the `OFFICE` prefix list after the deny statement.
`ge 32` (greater than or equal to 32) would only permit host routes, which would deny most other prefixes; `le 32` (less than or equal to 32) is needed to permit all prefix lengths.
Applying the distribute-list `out` would filter routes *advertised* by this router, not routes *learned* by it, which is the goal.
This option is identical to option A, providing the same correct configuration command but not a second distinct command.
Concept tested: OSPF route filtering with prefix lists
Source: https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/iproute_pi/configuration/15-mt/iri-15-mt-book/iri-cfg-prefix-list.html
Topics
Community Discussion
No community discussion yet for this question.