11-27
Default Level
2: System level
Parameters
acl6-number
: Number of an IPv6 ACL used to match against the destination address field of routing
information, ranging from 2000 to 3999.
ipv6-prefix-name
: Name of an IPv6 prefix list used to match against the destination address field of
routing information, a string of 1 to 19 characters.
Description
Use the
filter-policy import
command to filter inbound routing information using a specified filter.
Use the
undo filter-policy import
command to cancel filtering inbound routing information.
By default, no inbound routing information is filtered.
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 ACL6 2001 to filter all inbound routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 2001 import
# Configure ACL6 3000 to permit only route 2001::1/128 to pass, and reference ACL6 3000 to filter
outbound routes.
<Sysname> system-view
[Sysname] acl ipv6 number 3000
[Sysname-acl6-adv-3000] rule 10 permit ip 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] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] filter-policy 3000 import
group (IPv6 address family view)
Syntax
group ipv6-group-name
[
internal
|
external
]
undo group
ipv6-group-name
View
IPv6 address family view