Which command is used to apply a distribute list to OSPF?
- config)# distribute list 1 in
- config-std-nacl)# distribute-list 1 in
- config-router)# distribute-list 1 out
- config)# distribute-list 1 out
Explanation: A distribute list is a technique used to control routing updates by applying an access list to the routing process. To apply this filter, the distribute-list command must be configured under the routing protocol. This requirement means the command must be issued from the config-router prompt.
The behavior of distribute lists in OSPF is governed by specific rules:
- distribute-list in: This command filters which routes the SPF process installs into the local IP routing table; it does not remove routes from the link-state database (LSDB).
- distribute-list out: In OSPF, this command is used only on an ASBR and applies exclusively to redistributed routes, allowing the administrator to select which of those routes are advertised to other routers.
Related exam: Modules 8 – 13: Checkpoint Exam: Network Routing Answers (CCNP ENCOR v9)
