The filter-policy import command configures a filtering policy to filter the routes received by OSPF.
The undo filter-policy import command restores the default setting.
By default, the received routes are not filtered.
filter-policy acl-number import
filter-policy { acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name | route-filter route-filter-name } import
undo filter-policy [ acl-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name | route-filter route-filter-name ] import
Parameter | Description | Value |
---|---|---|
acl-number |
Specifies the number of a basic ACL. |
The value is an integer ranging from 2000 to 2999. |
acl6-name acl6-name |
Specifies the name of a named basic ACL6. |
The value is a string of 1 to 64 case-sensitive characters starting with a letter. It cannot contain spaces. |
ipv6-prefix ipv6-prefix-name |
Specifies the name of an IPv6 address prefix list. |
The value is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
route-policy route-policy-name |
Specifies the name of a routing policy. |
The value is a string of 1 to 200 case-sensitive characters without spaces. The character string can contain spaces if it is enclosed with double quotation marks ("). |
route-filter route-filter-name |
Specifies the name of a route-filter. Only the routes that match the route-filter are added to the routing information base (RIB) and can be advertised. |
The value is a string of 1 to 200 case-sensitive characters, spaces not supported. The character string can contain spaces if it is enclosed with double quotation marks ("). If parameters are included in the referenced route-filter, specify values for them in the format of (var1, var2, ...var8) behind the route-filter name. Each value ranges from 1 to 200 characters. |
Usage Scenario
After the filter-policy import command is run, only the routes that match the filtering policy are added to the routing table and advertised. The routes that do not match the filtering policy are not added to the routing information base (RIB) or advertised. OSPF is a link-state dynamic routing protocol, with routing information stored in the LSDB. Therefore, the filter-policy import command cannot be used to filter the advertised or received LSAs. Instead, the command is used to filter the routes calculated by OSPF.
Precautions
When the rule (basic ACL6 view) command is used to configure a filtering rule for a named IPv6 ACL, only the source address range is specified in source and the time period is specified in time-range take effect on the filtering rule.