Chapter 2 Advanced Routing for FortiOS 5.0 : Border Gateway Protocol (BGP) : Redistributing and blocking routes in BGP : Configuring the FortiGate unit : Configuring the FortiGate unit - OSPF
  
Configuring the FortiGate unit - OSPF
This configuration involves only one OSPF Area, so all traffic will be intra-area. If there were two or more areas with traffic going between them it would be inter-area traffic. These two types are comparable to BGP’s traffic within one AS (iBGP) or between multiple ASes (eBPG). Redistributing routes from OSPF to BGP is considered external because either the start or end point is a different routing protocol.
The OSPF configuration is basic apart from redistributing BGP routes learned.
To configure OSPF on the FortiGate unit - web-based manager
1. Go to Router > Dynamic > OSPF.
2. For Router ID enter 10.11.201.110 and then select Apply.
3. Under Advanced Options and Redistribute, select BGP and set BGP metric to 1.
4. For Areas, select Create New, enter the following information and then select OK.
Area (IP)
0.0.0.0
Type
Regular
Authentication
None
5. For Networks, select Create New.
6. Enter 10.11.201.0/255.255.255.0 for IP/Netmask, and select OK.
7. For Interfaces, select Create New.
8. Enter OSPF_dmz_network for Name.
9. Select port1(dmz) for Interface, and then select OK.
To configure OSPF on the FortiGate unit - CLI
config router ospf
set router-id 10.11.201.110
config area
edit 0.0.0.0
set type regular
set authentication none
end
config network
edit 1
set area 0.0.0.0
set prefix 10.11.201.0 255.255.255.0
end
config interface
edit “OSPF_dmz_network”
set interface port1(dmz)
set status enable
end
config redistribute bgp
set status enable
set metric 1
end
end