Configuring OSPF to Filter Received Routes
Procedure
- Run:
system-view
The system view is displayed.
- Run:
ospf [ process-id ]
The OSPF process view is displayed.
- Run:
filter-policy { acl-number | acl-name acl-name | ip-prefix ip-prefix-name | route-policy route-policy-name [ secondary ] } import
OSPF is configured to filter received routes.
- The parameter acl-number specifies the number of a basic ACL.
- The parameter acl-name acl-name specifies the name of an ACL.
- The parameter ip-prefix ip-prefix-name specifies the name of an IP prefix list.
The filter-policy import command is used to filter the routes calculated by OSPF but cannot be used to filter advertised or received LSAs. Only the routes that pass the filtering criteria are added to the routing table. However, routes that do not pass the filtering criteria can be advertised.