
307
Parameters
acl-number
: Specifies the IP ACL number, ranging from 2000 to 3999.
ip-prefix
ip-prefix-name
: Specifies an IP address prefix list by its name, which is a string of 1 to 19
characters.
direct
: Filters direct routes to be advertised.
isis
process-id
: Filters ISIS routes to be advertised that are from a specified ISIS process. The
process-id
parameter is ranging from 1 to 65,535.
ospf
process-id
: Filters OSPF routes to be advertised that are from a specified OSPF process. The
process-
id
parameter is ranging from 1 to 65,535.
rip
process-id
: Filters RIP routes to be advertised that are from a specified RIP process. The
process-id
parameter is ranging from 1 to 65,535.
static
: Filters static routes to be advertised.
Examples
# In BGP-VPNv4 subaddress family view, use ACL 2555 to filter routes to be advertised by MP-BGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] filter-policy 2555 export
filter-policy import (BGP-VPNv4 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
{
acl-number
|
ip-prefix
ip-prefix-name
}
import
undo filter-policy import
View
BGP-VPNv4 subaddress family view
Default level
2: System level
Parameters
acl-number
: Specifies the IP ACL number, ranging from 2000 to 3999.
ip-prefix
ip-prefix-name
: Specifies an IP address prefix list by its name, which is a string of 1 to 19
characters.
Examples
# In BGP-VPNv4 subaddress family view, use ACL 2255 to filter received routes.
<Sysname> system-view