< Home

ipv6 filter-policy import

Function

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

The undo ipv6 filter-policy import command cancels the filtering function.

By default, IS-IS does not filter the received routes to be added to the IPv6 routing table.

Format

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

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

Parameters

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.

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

IS-IS routing entries need to be added to an IPv6 routing table to guide IPv6 packet forwarding. If an IS-IS routing table has routes destined for a specified network segment, but these routes do not need to be sent to the IPv6 routing table, run the ipv6 filter-policy import command and specify an IPv6 prefix list or a route-policy to allow only the required IS-IS routes to be added to the IPv6 routing table.

Precautions

The ipv6 filter-policy import 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.

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 received IPv6 routes using a route-policy.

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