
383
protocol
: Filters routes redistributed from the routing protocol. It can be
direct
,
ospfv3
,
ripng
, or
static
at
present. If no protocol is specified, all routes will be filtered when advertised.
process-id
: Specifies the process ID of the routing protocol, in the range of 1 to 65535. This argument is
available when the protocol is
ospfv3
or
ripng
.
Description
Use
filter-policy
export
to filter outgoing routes by using a specified filter.
Use
undo filter-policy export
to cancel the filtering of outgoing routes.
By default, no outgoing routing information is filtered.
If a protocol
is specified, only routes redistributed from the specified protocol are filtered. If no protocol
is specified, all redistributed routes are filtered.
Examples
# Reference IPv6 ACL 2001 to filter all outgoing IPv6 MBGP routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] filter-policy 2001 export
filter-policy import (IPv6 MBGP address family view)
Syntax
filter-policy
{
acl6-number
|
ipv6-prefix
ipv6-prefix-name
}
import
undo filter-policy import
View
IPv6 MBGP address family view
Default level
2: System level
Parameters
acl6-number
: Specifies the number of a basic or advanced IPv6 ACL 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.
Description
Use
filter-policy import
to configure the filtering of inbound routing information using a specified filter.
Use
undo filter-policy import
to cancel the filtering of inbound routing information.
By default, inbound IPv6 MBGP routes are not filtered.
Examples
# Reference IPv6 ACL 2000 to filter all inbound IPv6 MBGP routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family multicast
[Sysname-bgp-af-ipv6-mul] filter-policy 2000 import