F3215-HP Load Balancing Module Network Management Command Reference-6PW101

437
filter-policy import (OSPFv3 view)
Use filter-policy import to configure OSPFv3 to filter routes computed from received LSAs.
Use undo filter-policy import to remove the configuration.
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } import
undo filter-policy import
Default
OSPFv3 does not filter routes computed from received LSAs.
Views
OSPFv3 view
Default command level
2: System level
Parameters
acl6-number: Specifies an ACL number, ranging from 2000 to 3999.
ipv6-prefix ipv6-prefix-name: Specifies the name of an IPv6 prefix list, a string of up to 19 characters.
Usage guidelines
To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL
in one of the following ways:
To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ipv6
source sour sour-prefix.
To deny/permit a route with the specified destination and prefix, use rule [ rule-id ] { deny | permit }
ipv6 source sour sour-prefix destination dest dest-prefix.
The source keyword specifies the destination address of a route, and the destination keyword specifies
the prefix of the route. (The prefix must be valid; otherwise, the configuration is ineffective.)
Using the filter-policy import command only filters routes computed by OSPFv3. The routes that fail to
pass are not added to the routing table.
Examples
# Filter received routes using the IPv6 prefix list abc.
<Sysname> system-view
[Sysname] ip ipv6-prefix abc permit 2002:1:: 64
[Sysname] ospfv3 1
[Sysname-ospfv3-1] filter-policy ipv6-prefix abc import
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter
received routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ipv6 source 2001::1 128 destination
ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff 128
[Sysname-acl6-adv-3000] rule 100 deny ipv6
[Sysname-acl6-adv-3000] quit
[Sysname] ospfv3