The filter-policy import command filters received routes.
The undo filter-policy import command restores the default setting.
By default, received routes are not filtered.
filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name } import
undo filter-policy [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name ] import
Parameter | Description | Value |
---|---|---|
acl6-number | Specifies the ACL6 number. | The value is an integer ranging from 2000 to 2999. |
acl6-name acl6-name | Specifies the name of an IPv6 named ACL. | The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter. |
ipv6-prefix ipv6-prefix-name | Specifies the name of the IPv6 address prefix list. | The name 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. |
Usage Scenario
The filter-policy import command only filters the routes calculated by OSPFv3. Routes that do not pass the filtering are neither added to the OSPFv3 routing table nor advertised.
For an ACL, when the rule command is used to configure a filtering rule, the filtering rule is effective only with the source address range that is specified by the source parameter and with the time period that is specified by the time-range parameter.
Precautions
Creating an ACL6 or IPv6 prefix list before it is referenced is recommended. If a nonexistent ACL6 or IPv6 prefix list is referenced using the command, all IPv6 routes received by OSPFv3 are delivered to the IPv6 routing table.