FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
nalexiou
Staff
Staff
Article Id 190891

Description
This article describes how to configure OSPF over Non-Broadcast link.

Related document.
https://docs.fortinet.com/document/fortigate/6.0.0/handbook/394152/ospf

Solution
The configuration is similar as with the rest network types.

The difference is on the OSPF interface configuration part.
The neighbor should also be configured manually.

An example configuration below:   

# config router ospf
    set router-id 0.0.0.1
    # config area
        edit 0.0.0.0
        next
    end
    # config ospf-interface
        edit "ospf"
            set interface "vlan 10"        <-----
            set network-type non-broadcast <-----
        next
    end
    # config network
        edit 1
            set prefix 10.10.10.0 0.0.0.255
        next
    end
    # config neighbor                      <-----
        edit 1
            set ip 10.10.10.3
        next
    end
    # config redistribute "connected"
    end
    # config redistribute "static"
    end
    # config redistribute "rip"
    end
    # config redistribute "bgp"
    end
    # config redistribute "isis"
    end
end

# config  system  interface
    edit "vlan10"
        set vdom "root"
        set ip 10.10.10.1 255.255.255.0
        set role lan
        set snmp-index 38
        set interface "port1"
        set vlanid 10
    next

Important Note.
The interface that should be configured under the '# config ospf-interface' configuration part, is the interface, in which the range that the neighbor address IP belongs to is assigned.
In this example it is the interface VLAN10.

If the physical interface is used instead (PORT1in this case) the following error will be generated:

'Neighbor can only be configured on non-broadcast or point-to-multipoint network.
object set operator error, -61 discard the setting Command fail. Return code 1'.



Related Articles

Technical Note : simple OSPF configuration with 2 FortiGates in the same area

Contributors