1694
C
98: MPLS L3VPN C
HAPTER
Description
Example
filter-policy import (BGP-VPNv4 subaddress family view)
Syntax
View
Parameter
Description
Example
C
ONFIGURATION
OMMANDS
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 65535.
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 65535.
static: Filters static routes to be advertised.
Use the
filter-policy export
routes to be advertised.
Use the
undo filter-policy export
If you specify no routing protocol parameters for the filter-policy export
command, all routes to be advertised will be filtered.
By default, MP-BGP does not filter routes to be advertised.
Only routes that survive the filtering are advertised by MP-BGP.
# In BGP-VPNv4 subaddress family view, specify to filter routes to be advertised by
MP-BGP using ACL 2555.
<Sysname> system-view
[Sysname] bgp 100
[Sysname] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] filter-policy 2555 export
filter-policy { acl-number | ip-prefix ip-prefix-name } import
undo filter-policy import
BGP-VPNv4 subaddress family view
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.
Use the
filter-policy import
Use the
undo filter-policy import
By default, received routes are not filtered.
Only routes that survive the filtering are added into the BGP routing table.
# In BGP-VPNv4 subaddress family view, specify to use ACL 2255 to filter received
routes.
command to specify to filter all or certain types of
command to remove the configuration.
command to specify to filter received routes.
command to remove the configuration.