router : ospf : config router ospf
 
config router ospf
Use this command to set the router ID of the FortiGate unit. Additional configuration options are supported.
The router-id field is required. All other fields are optional.
Variable
Description
Default
abr-type {cisco | ibm | shortcut | standard}
Specify the behavior of a FortiGate unit acting as an OSPF area border router (ABR) when it has multiple attached areas and has no backbone connection. Selecting the ABR type compatible with the routers on your network can reduce or eliminate the need for configuring and maintaining virtual links. For more information, see RFC 3509.
standard
auto-cost-ref-bandwidth <mbps_integer>
Enter the Mbits per second for the reference bandwidth. Values can range from 1 to 65535.
1000
bfd {enable | disable | global}
Select one of the Bidirectional Forwarding Detection (BFD) options for this interface.
enable - start BFD on this interface
disable - stop BFD on this interface
global - use the global settings instead of explicitly setting BFD per interface.
For the global settings see system bfd {enable | disable}.
disable
database-overflow
{enable | disable}
Enable or disable dynamically limiting link state database size under overflow conditions. Enable this command for FortiGate units on a network with routers that may not be able to maintain a complete link state database because of limited resources.
disable
database-overflow-max-lsas <lsas_integer>
If you have enabled database-overflow, set the limit for the number of external link state advertisements (LSAs) that the FortiGate unit can keep in its link state database before entering the overflow state. The lsas_integer must be the same on all routers attached to the OSPF area and the OSPF backbone. The valid range for lsas_integer is 0 to 4294967294.
10000
database-overflow-time-to-recover <seconds_integer>
Enter the time, in seconds, after which the FortiGate unit will attempt to leave the overflow state. If seconds_integer is set to 0, the FortiGate unit will not leave the overflow state until restarted. The valid range for seconds_integer is 0 to 65535.
300
default-information-metric <metric_integer>
Specify the metric for the default route set by the default-information-originate command. The valid range for metric_integer is 1 to 16777214.
10
default-information-metric-type {1 | 2}
Specify the OSPF external metric type for the default route set by the default-information-originate command.
2
default-information-originate {always | disable | enable}
Enter enable to advertise a default route into an OSPF routing domain.
Use always to advertise a default route even if the FortiGate unit does not have a default route in its routing table.
disable
default-information-route-map <name_str>
If you have set default-information-originate to always, and there is no default route in the routing table, you can configure a route map to define the parameters that OSPF uses to advertise the default route.
Null
default-metric <metric_integer>
Specify the default metric that OSPF should use for redistributed routes. The valid range for metric_integer is 1 to 16777214.
10
distance <distance_integer>
Configure the administrative distance for all OSPF routes. Using administrative distance you can specify the relative priorities of different routes to the same destination. A lower administrative distance indicates a more preferred route. The valid range for distance_integer is 1 to 255.
110
distance-external <distance_integer>
Change the administrative distance of all external OSPF routes. The range is from 1 to 255.
110
distance-inter-area <distance_integer>
Change the administrative distance of all inter-area OSPF routes. The range is from 1 to 255.
110
distance-intra-area <distance_integer>
Change the administrative distance of all intra-area OSPF routes. The range is from 1 to 255.
110
distribute-list-in <access_list_name>
Limit route updates from the OSPF neighbor based on the Network Layer Reachability Information (NLRI) defined in the specified access list. You must create the access list before it can be selected here. See router access-list, access-list6.
Null
passive-interface <name_str>
OSPF routing information is not sent or received through the specified interface.
No default.
restart-mode {graceful-restart | lls | none}
Select the restart mode from:
graceful-restart - (also known as hitless restart) when FortiGate unit goes down it advertises to neighbors how long it will be down to reduce traffic
lls - Enable Link-local Signaling (LLS) mode
none - hitless restart (graceful restart) is disabled
none
restart-period <time_int>
Enter the time in seconds the restart is expected to take.
120
rfc1583-compatible
{enable | disable}
Enable or disable RFC 1583 compatibility. RFC 1583 compatibility should be enabled only when there is another OSPF router in the network that only supports RFC 1583.
When RFC 1583 compatibility is enabled, routers choose the path with the lowest cost. Otherwise, routers choose the lowest cost intra-area path through a non-backbone area.
disable
router-id <address_ipv4>
Set the router ID. The router ID is a unique number, in IP address dotted decimal format, that is used to identify an OSPF router to other OSPF routers within an area. The router ID should not be changed while OSPF is running.
A router ID of 0.0.0.0 is not allowed.
0.0.0.0
spf-timers <delay_integer> <hold_integer>
Change the default shortest path first (SPF) calculation delay time and frequency.
The delay_integer is the time, in seconds, between when OSPF receives information that will require an SPF calculation and when it starts an SPF calculation. The valid range for delay_integer is 0 to 4294967295.
The hold_integer is the minimum time, in seconds, between consecutive SPF calculations. The valid range for hold_integer is 0 to 4294967295.
OSPF updates routes more quickly if the SPF timers are set low; however, this uses more CPU. A setting of 0 for spf-timers can quickly use up all available CPU.
5 10
Example
This example shows how to set the OSPF router ID to 1.1.1.1 for a standard area border router:
config router ospf
set abr-type standard
set router-id 1.1.1.1
end