373
route-policy
route-policy-name
: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters, to filter received routes.
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.
Using the
filter-policy
import
command filters only routes computed by OSPFv3. Routes that fail to pass
the filter are not added to the routing table.
Examples
# Use IPv6 prefix list
abc
to filter received routes.
<Sysname> system-view
[Sysname] ipv6 prefix-list abc permit 2002:1:: 64
[Sysname] ospfv3
[Sysname-ospfv3-1] filter-policy prefix-list abc import
# Configure IPv6 ACL 3000 to permit only route 2001::1/128 to pass. Use ACL 3000 to filter received
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] ospfv3
[Sysname-ospfv3-1] filter-policy 3000 import
graceful-restart enable
Use
graceful-restart enable
to enable the GR capability for OSPFv3.
Use
undo graceful-restart enable
to disable the GR capability for OSPFv3.
Syntax
graceful-restart enable
undo graceful-restart enable
Default
The GR capability for OSPFv3 is disabled.
Views
OSPFv3 view