Skip to main content
sims
Explorer II
May 21, 2019
Question

enabling ospf on fortigate

  • May 21, 2019
  • 1 reply
  • 4524 views

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

    1 reply

    emnoc
    New Member
    May 21, 2019

    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

     

    sims
    simsAuthor
    Explorer II
    May 21, 2019

    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
    New Member
    May 21, 2019

    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