8-9
Description
Use the
filter-policy import
command to define an inbound route filtering policy. Only routes
which match the filtering policy can be received.
Use the
undo filter-policy
import
command to disable inbound route filtering.
By default, RIPng does not filter incoming routing information.
Note that 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).
Examples
# Reference IPv6 prefix list
Filter1
to filter incoming RIPng updates.
<Sysname> system-view
[Sysname] ripng 100
[Sysname-ripng-100] filter-policy ipv6-prefix Filter1 import
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to
filter incoming RIPng updates.
<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] ripng 100
[Sysname-ripng-100] filter-policy 3000 import
import-route
Syntax
import-route
protocol
[
process-id
] [
allow-ibgp
] [
cost cost
|
route-policy route-policy-name
]
*
undo import-route
protocol
[
process-id
]
View
RIPng view
Default Level
2: System level
Parameters
protocol
: Specifies a routing protocol from which to redistribute routes. Currently, it can be
bgp4+
,
direct
,
isisv6
,
ospfv3
,
ripng
,
or
static
.
process-id
: Process ID, in the range of 1 to 65535. The default is 1.This argument is available
only when the protocol is
isisv6
,
ospfv3
, or
ripng
.