109
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
OL-27852-01
Chapter Unicast Routing Commands
default-metric (OSPF)
default-metric (OSPF)
To set default metric values for the Open Shortest Path First (OSPF) routing protocol, use the
default-metric command. To return to the default state, use the no form of this command.
default-metric metric-value
no default-metric metric-value
Syntax Description
Command Default The metric for redistributed, connected, and static routes is set to 25.
Command Modes Router configuration mode
Command History
Usage Guidelines Use the default-metric command with the redistribute command to configure the same metric value
for all redistributed routes except static and directly connected routes. A default metric helps to
redistribute routes with incompatible metrics. Whenever external route metrics do not convert to an
OSPF metric, use a default metric to enable the redistribution to proceed.
Note The default-metric command does not apply to the redistribution of directly connected routes into
OSPF. Use a route map to change the default metric for directly connected routes.
This command requires the LAN Base Services license.
Examples This example shows how to configure OSPF to redistribute RIP and BGP and set the default metric to 10:
switch# configure terminal
switch(config)# router ospf 201
switch(config-router)# default-metric 10
switch(config-router)# redistribute rip 109 route-map FilterRip
switch(config-router)# redistribute bgp 4 route-map FilterBgp
switch(config-router)#
metric-value Default metric value appropriate for the specified routing protocol.
The range is from 1 to 1677214.
Release Modification
5.0(3)A1(1) This command was introduced.