FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
akumarr
Staff
Staff
Article Id 201961
Description This article describes how to change the hello and dead time in OSPF.
Scope FortiGate.
Solution

Refer to the below command for changing the hello and dead time in OSPF interface.


config router osp
config ospf-interface
    edit <id>
        set hello-interval <0 to 65535>
        set dead-interval <0 to 65535>
    end
end

 

Here's a breakdown of the commands:

 

config router osp

 

This command enters the OSPF routing configuration mode. In this mode, it is possible to configure OSPF-specific parameters.


config ospf-interface

 

This command further narrows down the configuration context to OSPF interfaces. OSPF interfaces are network interfaces on which OSPF is running, and they communicate with other OSPF neighbors.


edit <id>

 

Here, select a specific OSPF interface by its identifier (ID) for configuration. The <id> placeholder should be replaced with the actual ID or name of the OSPF interface you wish to configure.


set hello-interval <0 to 65535>

This command sets the 'hello interval' for the OSPF interface. The hello interval determines how often (in seconds) the router sends a 'hello' packet to its OSPF neighbors on this interface.

The purpose of these hello packets is to establish and maintain neighbor relationships.

The value for the hello interval can range from 0 to 65535 seconds, but typical values are much smaller (e.g., 10 seconds for Ethernet interfaces).


set dead-interval <0 to 65535>

This command configures the 'dead interval' for the OSPF interface.

The dead interval specifies the time (in seconds) that the router should wait, without hearing any OSPF packets from a neighbor, before declaring that neighbor "down" or "unreachable". This interval is usually set to four times the hello interval. Just like the hello interval, its value can range from 0 to 65535 seconds.


end

This command exits the current configuration context (in this case, the OSPF interface configuration mode).

 

When changing these values, it is essential to ensure consistency across all OSPF routers in the same network area. Inconsistencies can lead to neighbor adjacency issues and consequently, routing problems.