![Huawei Quidway S8500 Series Command Manual Download Page 483](http://html.mh-extra.com/html/huawei/quidway-s8500-series/quidway-s8500-series_command-manual_169479483.webp)
Command Manual – Routing Protocol
Quidway S8500 Series Routing Switches
Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-14
6.1.17 if-match cost
Syntax
if-match cost
value
undo if-match cost
View
Route policy view
Parameter
value
: Specifies the required route metric value, ranging from 0 to 4294967295.
Description
Use the
if-match cost
command to configure one of the match rules of the route-policy
to match the cost of the routing information.
Use the
undo if-match cost
command to cancel the configuration of the match rule.
By default, no if-match sub-statement is defined.
This is an if-match sub-statement of Route-policy, used to specify the cost of a route
matches the specified condition.
Related command:
if-match interface
,
if-match acl
,
if-match ip-prefix
,
if-match ip
next-hop
,
if-match tag
,
route-policy
,
apply ip next-hop
,
apply local-preference
,
apply cost
,
apply origin
,
apply tag
.
Example
# Define an if-match sub-statement, allowing the routing information with routing cost of
8 to pass this if-match sub-statement.
[Quidway-route-policy] if-match cost 8
6.1.18 if-match interface
Syntax
if-match interface interface-type interface-number
undo if-match interface
View
Route policy view
Parameter
interface-type
: Specifies interface type.
interface-number
: Specifies interface number.