Switch 7700 Command reference Guide, v2.0

Table Of Contents
IP Routing Policy Configuration Commands 235
Use the filter-policy import command to set the condition for filtering the
routing information.
Use the undo filter-policy import command to cancel the setting of filter
condition
By default, the received routing information is not filtered.
In some cases, it may be required that only the routing information meeting some
conditions can be received. Then, the filter-policy command can be used to set the
filtering conditions for the routing information to be advertised. Only the routing
information passing the filtration can be received.
Related command: filter-policy export.
Example
Define the filtering rule for receiving routing information of RIP. Only the routing
information filtered through the address prefix list p1 can be received by RIP.
[SW7700-rip]filter-policy ip-prefix p1 import
if-match { acl | ip-prefix } Syntax
if-match { acl acl_number | ip-prefix ip_prefix_name }
undo if-match [ acl acl_number | ip-prefix ip_prefix_name ]
View
Route policy view
Parameter
acl_number: Specify the number of the access control list used for filtration
ip_prefix_name: Specify the prefix address list used for filtration
Description
Use the if-match { acl | ip-prefix } command to configure the IP
address range to match the Route-policy.
Use the undo if-match { acl | ip-prefix } command to cancel the setting
of the match rule.
Filtration is performed by quoting an ACL or a prefix address list.
Related command: if-match interface, if-match ip next-hop, if-match
cost
, if-match tag, route-policy, apply ip next-hop, apply cost, apply
local-preference
, apply origin and apply tag.
Example
Define one if-match sub-statement. When the sub-statement is used for filtering
route information, the route information filtered by route destination address
through address prefix list p1 is enable to pass the match sub-statement.
[SW7700-route-policy]if-match ip-prefix p1