3com 4500 26-PORT User Manual

Page of 466
IP Routing Policy Configuration Commands
169
By default, no match sub-statement is defined. 
Related commands: i
f-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
 and 
apply tag
.
Example
A match sub-statement is defined, which allows the routing information with 
routing cost 8 to pass this match sub-statement. 
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]route-policy permit node 1
% New sequence of this list
[4500-route-policy]if-match cost 8
if-match interface
Syntax
if-match interface { 
interface_name | interface_type 
interface_number }
undo if-match interface
View
Route policy view
Parameter
interface_type
 Enter interface type.
interface_number
 Enter interface number.
interface_name
 Enter interface name. 
Description
Use the 
if-match interface
 command to match the route whose next hop is the 
designated interface. 
Use the 
undo if-match interface
 command to cancel the setting of matching 
condition. 
By default, no match sub-statement is defined.
Related command: 
if-match acl
if-match ip-prefix
if-match ip 
next-hop
,
 if-match cost
route-policy
apply cost.
Example
Define one match sub-statement to match the route whose next hop interface is 
Vlan-interface 1.
<4500>system-view
System View: return to User View with Ctrl+Z.
[4500]route-policy permit node 1
% New sequence of this list
[4500-route-policy]if-match interface Vlan-interface 1