Chapter 2 Advanced Routing for FortiOS 5.0 : Open Shortest Path First (OSPF) : Basic OSPF example : Configuring OSPF on the FortiGate units : Configuring OSPF on Router1
  
Configuring OSPF on Router1
Router1 has a very high priority to ensure it becomes the DR for this area. Also Router1 has the lowest IP address to help ensure it will win in case there is a tie at some point. Otherwise it is a standard OSPF configuration. Setting the priority can only be done in the CLI, and it is for a specific OSPF interface.
To configure OSPF on Router1 - web-based manager
1. Go to Router > Dynamic > OSPF.
2. Set Router ID to 10.11.101.1 and select Apply.
3. In Areas, select Create New, set the following information, and select OK.
Area
0.0.0.0
Type
Regular
Authentication
none
4. In Networks, select Create New, set the following information, and select OK.
IP/Netmask
10.11.0.0/255.255.0.0
Area
0.0.0.0
5. In Interfaces, select Create New, set the following information, and select OK.
Name
Router1-Internal-DR
Interface
port1 (Internal)
IP
0.0.0.0
Authentication
none
Timers (seconds)
 
Hello Interval
10
Dead Interval
40
6. In Interfaces, select Create New, set the following information, and select OK.
Name
Router1-External
Interface
port2 (External)
IP
0.0.0.0
Authentication
none
Timers (seconds)
 
Hello Interval
10
Dead Interval
40
7. Using the CLI, enter the following commands to set the priority for the Router1‑Internal OSPF interface to maximum, ensuring this interface becomes the DR.
config router ospf
config ospf-interface
edit Router1-Internal-DR
set priority 255
end
To configure OSPF on Router1 - CLI
config router ospf
set router-id 10.11.101.1
config area
edit 0.0.0.0
next
end
config network
edit 1
set prefix 10.11.0.0/255.255.255.0
next
end
config ospf-interface
edit "Router1-Internal"
set interface "port1"
set priority 255
next
edit "Router1-External"
set interface "port2"
next
end
end