beautypg.com

24 set metric-type – CANOGA PERKINS 9175 Command Reference User Manual

Page 511

background image

CanogaOS Command Reference

28-23

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.


Command Syntax

set metric METRICVAL

no set metric

Syntax Description

METRICVAL

<+/-metric>|<0-4294967295> The metric value.

Command Mode

Route-map mode

Defaults

No set metric is specified by default.

Examples

Switch# configure terminal
Switch(config)# route-map rmap1 permit 3
Switch(config-route-map)# set metric 600

Related Commands

28.24 set metric-type

Use this command to set the metric type for the destination routing protocol.

Use the no parameter with this command to return to the default.