The ospf timer dead command sets a dead interval after which an interface considers its OSPF neighbor invalid.
The undo ospf timer dead command restores the default dead interval of the neighbor.
By default, for a P2P or broadcast interface, the dead interval for OSPF neighbors is 40 seconds; for an NBMA or P2MP interface, it is 120 seconds.
Parameter | Description | Value |
---|---|---|
interval | Specifies the dead interval of the OSPF neighbors. | The value is an integer ranging from 1 to 235926000,
in seconds. Setting the dead interval of an OSPF neighbor to be longer than 20s is recommended. |
Usage Scenario
If an interface does not receive any Hello packet from its neighbor within the dead interval, the interface considers its neighbor invalid. The dead interval on an OSPF interface must be greater than the transmission interval of Hello messages. In addition, the dead intervals of devices 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 messages.
Precautions
OSPF does not support the configuration on a 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.
# Set the dead interval on VLANIF100 to 60 seconds.
<HUAWEI> system-view
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] ospf timer dead 60
# Set the dead interval on GE0/0/1 to 60 seconds.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] undo portswitch [HUAWEI-GigabitEthernet0/0/1] ospf timer dead 60