R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
428
filter-policy export (IPv6 address family view/IPv6 BGP-VPN
instance view)
Use filter-policy export to filter outbound routes using a specified filter.
Use undo filter-policy export to cancel filtering outbound routes.
Syntax
filter-policy { acl6-number | ipv6-prefix ipv6-prefix-name } export [ protocol process-id ]
undo filter-policy export [ protocol process-id ]
Default
No outbound routing information is filtered.
Views
IPv6 address family view, IPv6 BGP-VPN instance view
Default command level
2: System level
Parameters
acl6-number: Specifies the number of an ACL6 used to match against the destination of routing
information. The number is in the range of 2000 to 3999.
ipv6-prefix-name: Specifies the name of an IPv6 prefix list used to match against the destination of
routing information. The name is a string of 1 to 19 characters.
protocol: Filters routes redistributed from the routing protocol. It can be direct, isisv6, ospfv3, ripng, or
static. If no protocol is specified, all routes will be filtered when advertised.
process-id: Process ID of the routing protocol, in the range of 1 to 65535. It is available only when the
protocol is isisv6, ospfv3 or ripng.
Usage guidelines
If a protocol is specified, only routes redistributed from the specified protocol are filtered. If no protocol
is specified, all redistributed routes will be filtered.
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 ACL6 2001 to filter all outbound IPv6 BGP routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 export