Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-11
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.
For the related commands, see 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.
[Quidway-rip] filter-policy ip-prefix p1 import
6.1.14 if-match { acl | ip-prefix }
Syntax
if-match { acl acl-number | ip-prefix ip-prefix-name }
undo if-match { acl | ip-prefix }
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. The length of
ip-prefix-name ranges from 1 to 19 character string.
Description
Using if-match { acl | ip-prefix } command, you can configure the IP address range to
match the Route-policy. Using undo if-match { acl | ip-prefix } command, you can
cancel the setting of the match rule.
Filtration is performed by quoting an ACL or a prefix address list.
For the related commands, see 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 if-match sub-statement.
[Quidway-route-policy] if-match ip-prefix p1