default-metric
This command sets the default metric assigned to e xternal routes imp orted fro m
other protocols. Use the
no
form to restore the default value.
Syntax
default-metric
metric-value
no default-metric
metric-value – Metric assigned to external routes. (Range: 0-15)
Command Mode
Router Configuration
Default Setting
8
Command Usage
This command does not override the metric value set by the redistribute
command (see page 42-11). When a metric value has not been configured by
the
redistribute
command, the
default-metric
command sets the metric
value to be used for all imported external routes.
The default metric must be used to resolve the problem of redistributing
external routes with incompatible metrics.
It is advisable to use a low metric when redistributing routes from another
protocol into RIP. Using a high metric limits the usefulness of external routes
redistributed into RIP. For example, if a metric of 10 is defined for redistributed
routes, these routes can only be advertised to router s up to 5 hops away , at
which point the metric exceeds the max imum hop count of 15. By defining a
low metric of 1, traffic can follow a imported rou te the max imum n umber of
hops allowed within a RIP domain. However, note that using a low met ric can
increase the possibility of routing loop s For exampl e, this ca n occur if there
are multiple redistribution points and the router learns about the same external
network with a better metric from a redistribution point other than that der ived
from the original source.
Example
This example sets the default metric to 5.
Console(config-router)#default-metric 5
Console(config-router)#
Related Commands
redistribute (42-11)
42-7
Routing Information Protocol (RIP)
42