Fortinet white logo
Fortinet white logo

CLI Reference

config OSPF

config OSPF

Description: Configure OSPF settings.

config ospf

set status [enable | disable]

set router-id <name1>

unset

Sample command:
config router ospf
  set status enable
  set router-id 192.168.100.127
Parameter Description Type Size Default
status

Set the status of the OSPF:

option - disable
Option Description
enable Enable OSPF
disable Disable OSPF

set router-id

The router-id is a unique identity to the OSPF router. If no router-id is specified, the system will automatically choose the highest IP address as the router-id.

IPv4 address - 0.0.0.0

config OSPF

config OSPF

Description: Configure OSPF settings.

config ospf

set status [enable | disable]

set router-id <name1>

unset

Sample command:
config router ospf
  set status enable
  set router-id 192.168.100.127
Parameter Description Type Size Default
status

Set the status of the OSPF:

option - disable
Option Description
enable Enable OSPF
disable Disable OSPF

set router-id

The router-id is a unique identity to the OSPF router. If no router-id is specified, the system will automatically choose the highest IP address as the router-id.

IPv4 address - 0.0.0.0