Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
sims
New Contributor III

enabling ospf on fortigate

Hi,

interface fa0/2 

ip address 192.168.2.10 255.255.255.0 

 

1 ) router ospf 1 

network 192.168.2.0 0.0.0.255 area 0 

2 )  interface FastEthernet 0/2

ip ospf 1 area 0 

 

If I want to do the same setup on fortigate  do I need to specify both interface and the network ?.

In gui I can see both 

If Yes why we have to do this . Usually on cisco we  either we use under interface(2)  or network (1)

 

Thanks

4 REPLIES 4
emnoc
Esteemed Contributor III

The ospf.cfg is simple

 

config router ospf

set router-id x.x.x.x

config area

edit 0.0.0.0

 next

end

config network

edit 1

 set prefix 192.168.2.0/255.255.255.0

 next

end

config ospf-interface

 edit "internal

 set interface "port1"

 set priority 200

 next

 end

end

 

Do all interface specific under the interface, concept is  very simple  and straightforward

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
sims
New Contributor III

Hi,

My question is the below commands are not enough to broadcast a network using ospf 

config router ospf set router-id x.x.x.x config area edit 0.0.0.0  next end config network edit 1  set prefix 192.168.2.0/255.255.255.0  next end

 

Why do we need to   add the port parts also like below 

 

config ospf-interface  edit "internal  set interface "port1"  set priority 200  next  end end

 

In cisco  we need only parts to broadcast a network using ospf 

 

router ospf 1  network 192.168.2.0 0.0.0.255 area 0 

 

in the below picture no interface is configured 

 

 

 

 

Thanks

 

 

 

 

 

emnoc
Esteemed Contributor III

This is not a cisco and you missed the earlier part, port specific ( ospf cmds )  goes under  interfaces. Follow the fortiOS guide and advance routing for examples.

 

Ken Felix

 

PCNSE 

NSE 

StrongSwan  

PCNSE NSE StrongSwan
sims
New Contributor III

Hi 

I agree that we have to add interface also , it's not like cisco . But I have seen couple of implementation without adding interface , they just broadcast the network .

Your advise ? 

Thanks

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors