The ospf timer dead command sets the dead interval of the OSPF neighbor.
The undo ospf timer dead command restores the default dead interval of the neighbor.
By default, for the interface of P2P and Broadcast, the dead interval for the OSPF neighbors is 40 seconds; for that of P2MP and NBMA, it is 120 seconds.
| Parameter | Description | Value |
|---|---|---|
| interval | Specifies dead interval of the OSPF neighbors. | The value is an integer ranging from 1 to 235926000,
in seconds. NOTE:
Setting the dead interval of an OSPF neighbor to
be longer than 20s is recommended. If the dead interval of an OSPF
neighbor is shorter than 20s, the session may be closed. |
Ethernet interface view, Ethernet sub-interface view, Eth-Trunk interface view, Eth-Trunk sub-interface view, Tunnel interface view, Dialer interface view, VLANIF interface view, Virtual-Template interface view, BDIF interface view
Usage Scenario
The dead interval of OSPF refers to that within this interval, the neighbor is considered invalid if no Hello packet is received from the neighbor. The dead interval on an OSPF-running interface must be larger than the transmission interval at which hello packets are transmitted. In addition, the dead intervals of routers on the same network segment must be the same.
By default, the dead interval of OSPF neighbors is four times the transmission interval of Hello packets.
Precautions
OSPF cannot be configured on the Null interface.
If the dead interval of an OSPF neighbor is shorter than 20s, the session may be closed. Therefore, if dead interval is shorter than 20s, the actual dead interval of an OSPF neighbor is not shorter than 20s.
To speed up OSPF convergence in the case of a link failure, for details, see Configuring BFD for OSPF.