3com 4500 PWR 50-PORT User Manual

Page of 466
166
C
HAPTER
 6: U
SING
 R
OUTING
 P
ROTOCOL
 C
OMMANDS
IP Routing Policy 
Configuration 
Commands
This section describes the commands you can use to configure IP Routing Policy. 
These commands operate across all routing protocols.
When the Switch 4500 runs a routing protocol, it is able to perform the functions 
of a router. The term router in this section can refer either to a physical router or to 
the Switch 4500 running a routing protocol.
apply cost 
Syntax
apply cost value
undo apply cost
View
Route Policy View
Parameter
value
 Enter the route cost value of route information.
Description
Use the 
apply cost 
command to configure the route cost value of route 
information. This command is one of the 
apply
 sub-statements of the 
Route-policy attribute set.
Use the 
undo apply cost
 command to cancel the apply sub-statement. 
Related commands: 
if-match interface
if-match acl
if-match ip-prefix
if-match ip next-hop
,
 if-match cost
, and 
route-policy
.
Example
Define one 
apply
 sub-statement. When it is used for setting route information 
attribute, it sets the route metric value of route information to 120.
<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]apply cost 120
display ip ip-prefix
Syntax
display ip ip-prefix [ 
ip_prefix_name ]
View
All views
Parameter
ip_prefix_name
 Enter displayed address prefix list name.
Description
Use the 
display ip ip-prefix
 command to view the address prefix list. 
Related command: 
ip ip-prefix
.