9-27
filter-policy export (OSPFv3 view)
Syntax
filter-policy
{
acl6-number
|
ipv6-prefix
ipv6-prefix-name
}
export
[
bgp4+
|
direct
|
isisv6 process-id
|
ospfv3 process-id
|
ripng process-id
|
static
]
undo filter-policy export
[
bgp4+
|
direct
|
isisv6 process-id
|
ospfv3 process-id
|
ripng process-id
|
static
]
View
OSPFv3 view
Default Level
2: System level
Parameters
acl6-number
: Specifies the ACL6 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.
bgp4+
: Filters BGP4+ routes.
direct
: Filters direct routes.
isisv6 process-id
: Specifies to filter the routes of an IPv6-IS-IS process, which is in the range of 1 to
65535.
ospfv3 process-id
: Specifies to filter the routes of an OSPFv3 process, which is in the range of 1 to
65535.
ripng process-id
: Specifies to filter the routes of a RIPng process, which in the range of 1 to 65535.
static
: Specifies to filter static routes.
Description
Use the
filter-policy export
command to filter redistributed routes.
Use the
undo filter-policy export
command to remove the configuration.
By default, IPv6 OSPFv3 does not filter redistributed routes.
Note that:
z
If no protocol is specified, all redistributed routes will be filtered.
z
If you want to reference an advanced ACL (with a number from 3000 to 3999) in the command,
the ACL should be configured with the
rule
[
rule-id
] {
deny
|
permit
}
ipv6 source
sour
sour-prefix
command to deny/permit a route with the specified destination, or with the
rule
[
rule-id
] {
deny
|
permit
}
ipv6 source
sour sour-prefix
destination
dest dest-prefix
command to
deny/permit a route with the specified destination and prefix. The
source
keyword specifies the
destination address of a route while the
destination
keyword specifies the prefix of the route (the
prefix must be valid; otherwise, the configuration is ineffective).
z
Using the
filter-policy export
command filters only routes redistributed by the
import-route
command. If the
import-route
command is not configured to redistribute routes from other
protocols and other OSPFv3 processes, use of the
filter-policy export
command does not take
effect.
Examples
# Filter all redistributed routes using IPv6 ACL 2001.