23 set metric – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 578
CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 578 of 855
28.22.1.6 Related
Commands
28.23 set metric
Use this command to set a metric value for a route.
Use the no parameter with this command to disable this function.
This command sets the metric value for a route, and influences external neighbors about the
preferred path into an Autonomous System (AS). The preferred path is the one with a lower
metric value. A router compares metrics for paths from neighbors in the same ASs. To compare
metrics from neighbors coming from different ASs, use the bgp always-compare-med command.
To use the set metric command, you must first have a match clause. Match and set commands
set the conditions for redistributing routes from one routing protocol to another. The match
command specifies the match criteria under which redistribution is allowed for the current
route-map. The set command specifies the set redistribution actions to be performed, if the
match criteria are met.
If the packets do not match any of the defined criteria, they are routed through the normal
routing process.
Note:
This command is valid for BGP, OSPF and RIP only.
28.23.1.1 Command
Syntax
set metric METRICVAL
no set metric
28.23.1.2 Syntax
Description
METRICVAL
<+/-metric>|<0-4294967295> The metric value.
28.23.1.3 Command
Mode
Route-map mode
28.23.1.4 Defaults
No set metric is specified by default.