filter-policy import
Syntax
filter-policy
{
acl-number
|
ip-prefix ip-prefix-name
}
import
undo filter-policy import
View
BGP-VPN instance view
Default level
2: System level
Parameters
acl-number
: IP ACL number, in the range of 2000 to 3999.
ip-prefix-name
: IP address prefix list name, a string of 1 to 19 characters.
Description
Use
filter-policy import
to configure BGP to filter received routes.
Use
undo filter-policy import
to remove the configuration.
By default, BGP does not filter received routes.
Only routes that survive the filtering are added into the BGP routing table.
Examples
# Configure BGP to filter received routes using ACL 2255.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] filter-policy 2255 import
import route-policy
Syntax
import route-policy
route-policy
undo import route-policy
View
VPN instance view, IPv4 VPN view
Default level
2: System level
Parameters
route-policy
: Name of the import routing policy for the VPN instance, a string of 1 to 63 characters.
Description
Use
import route-policy
to apply an import routing policy to a VPN instance.
Use
undo import route-policy
to remove the application.
By default, all routes permitted by the import target attribute are accepted.
463