Setting a Dead Time for a Neighbor Relationship
Procedure
- Run:
system-view
The system view is displayed.
- Run:
interface interface-type interface-number
The OSPF interface view is displayed.
- (Optional) On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode. - Run:
ospf timer dead interval
A dead time after which the neighbor relationship expires between two switches is set.
By default, the dead time is 40s on a P2P or broadcast interface and 120s on a P2MP or NBMA interface. The dead time is four times the interval for sending Hello packets on the same interface.
NOTE:
A dead time longer than 20s is recommended. If the dead time is shorter than 20s, the OSPF neighbor relationship may be disconnected unexpectedly.
Both the Hello timer and the Dead timer are restored to their default values upon a change to the network type.