DGS-6604 mm default-metric (RIP)
CLI Reference Guide
153
default-metric (RIP)
To set default metric values for Routing Information Protocol (RIP), use the
default-metric command. To return to the default state, use the default form of
the command.
default-metric METRIC-VALUE
default default-metric
Default 1
Command Mode Router configuration
Usage Guideline The default-metric command is used in conjunction with the redistribute router
configuration (redistribute (RIP) command on page 522) command to cause
the current routing protocol to use the same metric value for all redistributed
routes. A default metric helps solve the problem of redistributing routes with an
incompatible metric. Whenever a metric does not convert, using a default-metric
provides a reasonable substitute and enables the redistribution to proceed.
Example The following example shows how to configure the default metric 5 to redistribute
the OSPF routes. In other words, it assigns the OSPF-derived routes a RIP
metric of 5. Note that the command redistribute ospf without a metric option,
causes the OSPF redistribution to use the default metric.
Verify the settings by entering the show ip protocols rip command.
Syntax Description
METRIC-VALUE Default metric value. (From 1 to 16).
Switch# configure terminal
Switch(config)# router rip
Switch(config-router)# default-metric 5
Switch(config-router)# redistribute ospf