R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
390
Usage guidelines
In some cases, only routes meeting certain conditions are advertised. You can configure the filtering
conditions using the ipv6 filter-policy command.
You can use the ipv6 filter-policy export command, which filters redistributed routes only when they are
advertised to other routers, in combination with the ipv6 import-route command.
• If no protocol is specified, routes redistributed from all protocols are filtered before advertisement.
• If a protocol is specified, only routes redistributed from the protocol are filtered before
advertisement.
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.)
Examples
# Reference the ACL6 2006 to filter all the redistributed routes.
<Sysname> system-view
[Sysname] isis 1
[Sysname-isis-1] ipv6 filter-policy 2006 export
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter
redistributed 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] isis 1
[Sysname-isis-1] ipv6 filter-policy 3000 export
Related commands
ipv6 filter-policy import
ipv6 filter-policy import
Use ipv6 filter-policy import to configure IPv6 IS-IS to filter the received routes.
Use undo ipv6 filter-policy import to disable the filtering.
Syntax
ipv6 filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name | route-policy route-policy-name } import
undo ipv6 filter-policy import
Default
The filtering is disabled.