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 Router2
  
Configuring OSPF on Router2
Router2 has a high priority to ensure it becomes the BDR for this area, and configures the DSL interface slightly differently—assume this will be a slower connection resulting in the need for longer timers, and a higher cost for this route.
Otherwise it is a standard OSPF configuration.
To configure OSPF on Router2 - web-based manager
1. Go to Router > Dynamic > OSPF.
2. Set Router ID to 10.11.101.2 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
Router2-Internal
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
Router2-External
Interface
port2 (External)
IP
0.0.0.0
Authentication
none
Timers (seconds)
 
Hello Interval
10
Dead Interval
40
7. In Interfaces, select Create New, set the following information, and select OK.
Name
Router2-DSL
Interface
port3 (DSL)
IP
0.0.0.0
Authentication
none
Cost
50
Timers (seconds)
 
Hello Interval
20
Dead Interval
80
8. Using the CLI, enter the following commands to set the priority for the Router2‑Internal OSPF interface to ensure this interface will become the BDR.
config router ospf
config ospf-interface
edit Router2-Internal
set priority 250
next
end
To configure OSPF on Router2 - CLI
config router ospf
set router-id 10.11.101.2
config area
edit 0.0.0.0
next
end
config network
edit 1
set prefix 10.11.0.0/255.255.0.0
next
end
config ospf-interface
edit "Router2-Internal"
set interface "port1"
set priority 255
next
edit "Router2-External"
set interface "port2"
next
edit "Router2-DSL"
set interface "port3"
set cost 50
next
end
end