![Huawei Quidway S8500 Series Command Manual Download Page 484](http://html.mh-extra.com/html/huawei/quidway-s8500-series/quidway-s8500-series_command-manual_169479484.webp)
Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-15
Description
Use the
if-match interface
command to configure to match the route whose next hop
is designated interface.
Use the
undo if-match interface
command to cancel the setting of matching condition.
By default, no if-match sub-statement is defined.
This command is an if-match sub-statement of route-policy, used to match the interface
corresponding to the route next hop in route filtering.
Related commands:
if-match acl
,
if-match ip-prefix
,
if-match ip next-hop
,
if-match
cost
,
if-match tag
,
route-policy
,
apply ip next-hop
,
apply cost
,
apply
local-preference
,
apply origin
,
apply tag
.
Example
# Define an if-match sub-statement to match the route whose next hop interface is
Vlan-interface 1
[Quidway-route-policy] if-match interface Vlan-interface 1
6.1.19 if-match ip next-hop
Syntax
if-match ip next-hop
{
acl
acl-number
|
ip-prefix
ip-prefix-name
}
undo if-match ip next-hop
[
ip-prefix
]
View
Route policy view
Parameter
acl-number
: Specifies the number of the access control list used for filtration. The range
is 2000 to 2999.
ip-prefix-name
: Specifies the name of the prefix address list used for filtration. Its length
ranges from 1 to 19.
Description
Use the
if-match ip next-hop
command to configure one match rule on next hop
address of routing information for the route-policy.
Use the
undo if-match ip next-hop
command to cancel the setting of ACL matching
condition.
Use the
undo if-match ip next-hop
ip-prefix
command to cancel the setting of
address prefix list matching condition.
Filtration is performed by quoting an ACL or an address prefix list.