set metric (BGP, OSPF, RIP)




set metric metric-value
no set metric metric-value


Syntax Description:

metric-value Metric value; an integer from -294967295 to 294967295. This argument applies to all routing protocols except Interior Gateway Routing Protocol (IGRP) and Enhanced IGRP (EIGRP).


Command Description:

To set the metric value for a routing protocol, use the set metric command in route-map configuration mode. To return to the default metric value, use the no form of this command.

The default is a dynamically learned metric value.

We recommend that you consult your Cisco technical support representative before changing the default value.

Use the route-map (IP) global configuration command with the match and set route-map configuration commands to define the conditions for redistributing routes from one routing protocol into another, or for policy routing. Each route-map command has an associated list of match and set commands. The match commands specify the match criteria--the conditions under which redistribution or policy routing is allowed for the current route-map command. The set commands specify the set actions--the particular redistribution or policy routing actions to perform if the criteria enforced by the match commands are met. The no route-map command deletes the route map.

The set route-map configuration commands specify the redistribution set actions to be performed when all of the match criteria of a route map are met.


The following example sets the metric value for the routing protocol to 100:

Router(config)# route-map set-metric
Router(config-route-map)# set metric 100



Related Commands:

match as-path
match community
match interface
match ip address
match ip next-hop
match ip route-source
match metric
match route-type
match tag
set community
set metric-type
set tag
set weight

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)