362
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-af-vpnv6] filter-policy 2555 export
filter-policy import (BGP-VPNv6 subaddress family view)
Description
Use the
filter-policy import
command to filter received routes.
Use the
undo filter-policy import
command to remove the configuration.
By default, received routes are not filtered.
Only routes that survive the filtering are added into the BGP routing table.
Syntax
filter-policy
{
acl6-number
|
ipv6-prefix
ipv6-prefix-name
}
import
undo filter-policy import
View
BGP-VPNv6 subaddress family view
Default level
2: System level
Parameters
acl6-number
: Specifies the IPv6 ACL number, ranging from 2000 to 3999.
ipv6-prefix
ipv6-prefix-name
: Specifies an IPv6 address prefix list by its name, which is a string of 1 to 19
characters.
Examples
# In BGP-VPNv6 subaddress family view, use ACL 2555 to filter received routes.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family vpnv6
[Sysname-bgp-af-vpnv6] filter-policy 2255 import
import route-policy
Description
Use the
import route-policy
command to apply an import routing policy to a VPN instance, an IPv4 VPN
or an IPv6 VPN.
Use the
undo import route-policy
command to remove the application.
By default, all routes permitted by the import target attribute are accepted.
You can specify an import routing policy when the route redistribution control provided by the extended
community attributes is not enough.
•
An import routing policy specified in VPN instance view is applicable to both the IPv4 VPN and the
IPv6 VPN.
•
An import routing policy specified in IPv6 VPN view is applicable to only the IPv6 VPN.