3Com Switch 7750 Series
Command Reference Guide – Routing Protocol
Chapter 6 IP Routing Policy Configuration Commands
6-13
Parameter
value
: Route cost value, ranging from 0 to 4,294,967,295.
Description
Use the
if-match cost
command to configure one of the match rules of the
route-policy to match the cost of routing information.
Use the
undo if-match cost
command to cancel the configuration of the match rule.
By default, no if-match statement is defined.
An if-match statement of the route-policy specifies the route cost of the routing
information meeting the 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 cost
,
apply
local-preference
,
apply origin
, and
apply tag
.
Example
# Define an if-match statement and allow the routing information with a routing cost of
8 to pass this if-match statement.
<3Com> system-view
System View: return to User View with Ctrl+Z.
[3Com] route-policy policy permit node 1
%New sequence of this list
[3Com-route-policy] if-match cost 8
6.1.16 if-match interface
Syntax
if-match interface
{
interface-type interface-number
}
undo if-match interface
View
Route policy view
Parameter
interface-type
: Interface type.
interface-number
: Interface number.
Description
Use the
if-match interface
command to configure to match the route whose next hop
is the designated interface.