Filter-Policy Export - H3C S5820X Series Command Reference Manual

Mpls command reference
Hide thumbs Also See for S5820X Series:
Table of Contents

Advertisement

Examples
# Apply export routing policy poly-1 to VPN instance vpn1.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] export route-policy poly-1

filter-policy export

Use filter-policy export to filter all or certain types of routes to be advertised.
Use undo filter-policy export to remove the configuration.
Syntax
filter-policy { acl-number | ip-prefix ip-prefix-name } export [ direct | isis process-id | ospf process-id |
rip process-id | static ]
undo filter-policy export [ direct | isis process-id | ospf process-id | rip process-id | static ]
Default
BGP does not filter routes to be advertised.
Views
BGP-VPN instance view
Default command level
2: System level
Parameters
acl-number: Specifies an IP ACL number in the range of 2000 to 3999.
ip-prefix-name: Specifies an IP address prefix list name, 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 specific ISIS process. The process-id
argument is in the range of 1 to 65535.
ospf process-id: Filters OSPF routes to be advertised that are from a specific OSPF process. The process-id
argument is in the range of 1 to 65535.
rip process-id: Filters RIP routes to be advertised that are from a specific RIP process. The process-id
argument is in the range of 1 to 65535.
static: Filters static routes to be advertised.
Usage guidelines
If you specify no routing protocol parameters for the filter-policy export command, all routes to be
advertised will be filtered.
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-bgp] ipv4-family vpn-instance vpn1
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5800 series

Table of Contents