default-metric (RIP)

Changes the RIP metric the router assigns by default to redistributed routes.
Syntax
default-metric value
no default-metric value
Command Default

By default, a metric of 1 is assigned to each route that is redistributed into RIP.

Parameters
value
Specifies a numeric value from 1 through 15 that is assigned to each route redistributed into RIP.
Modes

RIP router configuration mode

Usage Guidelines

The no form of the command returns the value of the default-metric to 1.

As its default-metric increases, the less likely a route is to be used.

Examples

The following example sets the default metric for all RIP routes on the device to 10.

device# configure terminal
device(config)# router rip
device(config-rip-router)# default-metric 10

The following example returns the default metric set in the previous example to the system default (1).

device# configure terminal
device(config)# router rip
device(config-rip-router)# no redistribute connected metric 10