371
Examples
# Use IPv6 prefix list
my-prefix-list
to filter inbound Inter-Area-Prefix-LSAs, and use IPv6 ACL 2000 to filter
outbound Inter-Area-Prefix-LSAs in OSPFv3 Area 1.
<Sysname> system-view
[Sysname] ospfv3 1
[Sysname-ospfv3-1] area 1
[Sysname-ospfv3-1-area-0.0.0.1] filter prefix-list my-prefix-list import
[Sysname-ospfv3-1-area-0.0.0.1] filter 2000 export
filter-policy export (OSPFv3 view)
Use
filter-policy export
to configure OSPFv3 to filter redistributed routes.
Use
undo filter-policy export
to remove the configuration.
Syntax
filter-policy
{
acl6-number
|
prefix-list
prefix-list-name
}
export
[
protocol
[
process-id
] ]
undo filter-policy export
[
protocol
[
process-id
] ]
Default
Redistributed routes are not filtered.
Views
OSPFv3 view
Predefined user roles
network-admin
Parameters
acl6-number
: Specifies an IPv6 ACL by its number in the range of 2000 to 3999 to filter redistributed
routes by destination address.
prefix-list-name
: Specifies an IPv6 prefix list by its name, a case-sensitive string of 1 to 63 characters, to
filter redistributed routes by destination address.
protocol
: Filters routes redistributed from the specified routing protocol, which can be
bgp4+
,
direct
,
isisv6
,
ospfv3
,
ripng
, and
static
. If no protocol is specified, this command filters all redistributed routes.
process-id
: Specifies a process by its ID in the range of 1 to 65535. This argument is available only when
the
protocol
is
ripng
,
ospfv3
, or
isisv6
.
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 contiguous. Otherwise, the configuration does not take effect.