< Home

ipv6 filter-policy import

Function

The ipv6 filter-policy import command configures IS-IS to filter the received IPv6 routes to be added to the IPv6 routing table.

The undo ipv6 filter-policy import command removes the configuration.

By default, the filtering function is disabled.

Format

ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import

undo ipv6 filter-policy [ acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name ] import

Parameters

Parameter Description Value
acl6-number Indicates the number of the basic ACL6. It is an integer ranging from 2000 to 2999.
ipv6-prefix ipv6-prefix-name Specifies the name of the 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 the routing policy that is used to filter the 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.

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is valid only for an IPv6 base topology.

The ipv6 filter-policy import command can take effect only after IPv6 is enabled for the IS-IS process by the ipv6 enable command.

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 IS-IS are delivered to the IPv6 routing table.

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 IPv6 routes received by IS-IS are delivered to the IPv6 routing table.

Example

# Filter the received IPv6 routes by using ACL6 2003.

<sysname> system-view
[sysname] ipv6
[sysname] isis
[sysname-isis-1] ipv6 enable
[sysname-isis-1] ipv6 filter-policy 2003 import
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >