R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

245
[Sysname-bgp-ipv4-vpn1] ebgp-interface-sensitive
filter-policy export (BGP/BGP-VPN instance view)
Use filter-policy export to configure the filtering of outgoing routes.
Use undo filter-policy export to remove the filtering.
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
No route filtering is configured.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
acl-number: Number of an ACL used to filter outgoing routing information, in the range of 2000 to 3999.
ip-prefix-name: Name of an IP prefix list used to filter outgoing routing information, a string of 1 to 19
characters.
direct: Filters direct routes.
isis process-id: Filters outgoing routes redistributed from an ISIS process. The ID is in the range of 1 to
65535.
ospf process-id: Filters outgoing routes redistributed from the OSPF process with an ID from 1 to 65535.
rip process-id: Filters outgoing routes redistributed from a RIP process. The ID is in the range of 1 to
65535.
static: Filters static routes.
Usage guidelines
If no routing protocol is specified, all outgoing routes are filtered.
To reference an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL
in one of the following ways:
To deny/permit a route with the specified destination, use rule [ rule-id ] { deny | permit } ip source
sour-addr sour-wildcard.
To deny/permit a route with the specified destination and mask, use rule [ rule-id ] { deny | permit }
ip source sour-addr sour-wildcard destination dest-addr dest-wildcard.
The source keyword specifies the destination address of a route, and the destination keyword specifies
the subnet mask of the route. (The subnet mask must be valid; otherwise, the configuration is ineffective.)
Examples
# In BGP view, reference ACL 2000 to filter all outgoing routes.
<Sysname> system-view