Command Reference Guide
Router (OSPF) Configuration Command Set
5991-2114 © Copyright 2005 Hewlett-Packard Development Company, L.P. 909
default-metric <value>
Use the default-metric command to set a metric value for redistributed routes.
Syntax Description
<value> Set the default metric value (range: 0-4294967295).
Default Values
By default, this value is set at 20.
Command Modes
(config-ospf)# Router (OSPF or RIP) Configuration Mode required
Functional Notes
The metric value defined using the redistribute command overrides the default-metric command’s metric
setting. See
redistribute ospf [metric <value>] on page 900 for related information.
Usage Examples
The following example shows a router using both RIP and OSPF routing protocols. The example
advertises RIP-derived routes using the OSPF protocol and assigns the RIP-derived routes an OSPF
metric of 10.
(config)#router ospf
(config-ospf)#default-metric 10
(config-ospf)#redistribute rip