D Commands
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with D.
dead-interval (OSPF virtual link)
To set the interval during which at least one hello packet must be received from a neighbor on an Open Shortest Path First (OSPF) virtual link before the router declares that neighbor as down, use the dead interval command. To restore the default, use the no form of this command.
Command ModesVirtual link configuration mode
Usage GuidelinesUse the dead interval command in virtual link configuration mode to configure the dead interval advertised in OSPF hello packets. This value must be the same for all networking devices on the virtual link. The default value for seconds is four times the interval set by the hello-interval command.
You can configure a shorter dead interval (seconds) to detect a down neighbor faster and improve convergence. A shorter dead interval may lead to virtual link instability by incorrectly declaring a slow neighbor as down.
Use the show ip ospf virtual-links command to verify the dead interval.
default-information originate (OSPF)
To generate a default external route into an Open Shortest Path First (OSPF) routing domain, use the default-information originate command. To disable this feature, use the no form of this command.
default-information originate [always] [route-map map-name]
no default-information originate [always] [route-map map-name]
Command ModesAddress-family configuration mode
Usage GuidelinesUse the default-information originate command to assign a default route for redistributed routes. Whenever you use the redistribute command to redistribute routes into an OSPF routing domain, Cisco NX-OS automatically becomes an Autonomous System Boundary Router (ASBR). However, an ASBR does not, by default, generate a default route into the OSPF routing domain.
Use the route-map keyword to filter redistributed routes so that Cisco Nexus 6000 generates a default route only for routes that pass the route map. Use the always keyword to generate the default route regardless of whether the default route is in the route table.
![]()
Note The default-information originate command ignores match statements in the optional route map.
ExamplesThis example shows how to configure the default route redistributed into the OSPF routing domain for the Enhanced Interior Gateway Protocol (EIGRP):
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.
Command ModesAddress-family configuration mode
Usage GuidelinesUse 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.
distance (OSPF)
To define the Open Shortest Path First (OSPF) route administrative distance, use the distance command. To restore the default, use the no form of this command.
Command Modes
Usage GuidelinesUse the distance command to set a distance for an entire group of routes. Use the distance command when you configure multiple routing protocols, and you want to choose one set of routes over the other.