14-18
ospf process-id
: Filters OSPF routes to be advertised that are from a specified OSPF process. The
process-id
argument is in the range 1 to 4294967295.
rip process-id
: Filters RIP routes to be advertised that are from a specified RIP process. The
process-id
argument is in the range 1 to 4294967295.
static
: Filters static routes to be advertised.
Description
Use the
filter-policy export
command to configure BGP to filter all or certain types of routes to be
advertised.
Use the
undo filter-policy export
command to remove the configuration.
If you specify no routing protocol parameters for the
filter-policy export
command, all routes to be
advertised will be filtered.
By default, BGP does not filter routes to be advertised.
Only routes that survive the filtering are advertised by BGP.
Examples
# Configure BGP to filter the routes to be advertised by using ACL 2555.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] filter-policy 2555 export
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 2000 to 3999.
ip-prefix-name
: IP address prefix list name, a string of 1 to 19 characters.
Description
Use the
filter-policy import
command to configure BGP to filter received routes.
Use the
undo filter-policy import
command 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] ipv4-family vpn-instance vpn1