The ipv6 filter-policy export command configures a filtering policy to allow IS-IS to filter the imported IPv6 routes to be advertised.
The undo ipv6 filter-policy export command cancels the filtering function.
By default, IS-IS does not filter imported IPv6 routes to be advertised.
ipv6 filter-policy { acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } export [ protocol [ process-id ] | unr ]
undo ipv6 filter-policy [ acl6-number | acl6-name acl6-name | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name ] export [ protocol [ process-id ] | unr ]
Parameter | Description | Value |
---|---|---|
acl6-number |
Specifies the number of a basic ACL6. |
The value is an integer that ranges from 2000 to 2999. |
acl6-name acl6-name |
Specifies the name of an IPv6 named ACL. |
The value of acl6-name is a string of 1 to 64 case-sensitive characters without spaces. |
ipv6-prefix ipv6-prefix-name |
Specifies the name of an IPv6 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. |
route-policy route-policy-name |
Specifies the name of a route-policy to filter routes based on tag and other protocol parameters. |
The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
protocol |
Specifies the imported routes that need to be filtered when the routes are advertised. Currently, the protocol can be direct, static, ripng, bgp, unr, ospfv3, or another isis process. If the protocol parameter is not specified, all imported routes are filtered. |
- |
process-id |
Specifies the process ID if protocol is ripng, ospfv3, or another isis process. |
The value is an integer that ranges from 1 to 65535. |
unr |
Indicates the imported UNR routes that need to be filtered when the routes are advertised. |
- |
Usage Scenario
The ipv6 filter-policy export command together with the ipv6 import-route command can be used to filter only the imported routes that are advertised to other switches. If protocol is not specified, the routes that are imported from all other protocols are filtered. If protocol is specified, the routes that are imported from the specific protocol are filtered.
The ipv6 filter-policy export command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.
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 external IPv6 routes of the specified routing domain that are imported by IS-IS are advertised to the specified neighbor.
Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, all external IPv6 routes of the specified routing domain that are imported by IS-IS are advertised to the specified neighbor.