R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference

156
filter-policy export
Use filter-policy export to configure IS-IS to filter redistributed routes.
Use undo filter-policy export to remove the configuration.
Syntax
filter-policy { acl-number | prefix-list prefix-list-name | route-policy route-policy-name } export [ protocol
[ process-id ] ]
undo filter-policy export [ protocol [ process-id ] ]
Views
IS-IS view
Predefined user roles
network-admin
Parameters
acl-number: Specifies an ACL by its number in the range of 2000 to 3999 to filter redistributed routes.
prefix-list prefix-list-name: Specifies an IPv4 prefix list by its name, a case-sensitive string of 1 to 63
characters, to filter redistributed routes by destination address.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters, to filter redistributed routes.
protocol: Filters routes redistributed from the specified routing protocol, which can be bgp, direct, isis,
ospf, rip, or static. If no protocol is specified, the command filters all redistributed routes.
process-id: Specifies a process by its ID in the range of 1 to 65535. This argument is available only when
the protocol is isis, ospf, or rip. The default process ID is 1.
Usage guidelines
To use an advanced ACL (with a number from 3000 to 3999) in the command, configure the ACL using
one of the following methods:
To deny/permit a route with the specified destination, use the rule [ rule-id ] { deny | permit } ip
source sour-addr sour-wildcard command.
To deny/permit a route with the specified destination and mask, use the rule [ rule-id ] { deny |
permit } ip source sour-addr sour-wildcard destination dest-addr dest-wildcard command.
The source keyword specifies the destination address of a route and the destination keyword specifies the
subnet mask of the route. The specified subnet mask must be contiguous. Otherwise, the configuration
does not take effect.
Examples
# Use ACL 2000 to filter redistributed routes.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule deny source 192.168.10.0 0.0.0.255
[Sysname-acl-basic-2000] rule permit source any
[Sysname-acl-basic-2000] quit
[Sysname] isis 1
[Sysname-isis-1] filter-policy 2000 export