Fortinet white logo
Fortinet white logo

CLI Reference

config ospf-interface

config ospf-interface

Description: Configure OSPF interface settings.

config ospf-interface

edit <name>

set status [enable | disable]

set *interface <name1>

set mtu-ignore [enable | disable]

set cost [0 – 65535]

unset

next

show

abort

end

delete <name>

purge

show

end

Sample command:
config ospf-interface
  edit 1
    set status enable
    set interface opaq
    set mtu-ignore enable
    set cost 5
end
Parameter Description Type Size Default
config ospf-interface OSPF interface configuration. option - none
status

Enable/Disable OSPF processing on the said interface.

option -
Option Description
enable Enable OSPF processing on the said interface.
disable Disable OSPF processing on the said interface.

set interface

Must be the VPN tunnel interface as OSPF is built over IPSEC VPN.

set mtu-ignore

Prevents OSPF neighbor adjacency failure caused by mismatched MTUs.

Option Description
enable OSPF will stop detecting mismatched MTUs before forming OSPF adjacency
disable

OSPF will detect mismatched MTUs, and OSPF adjacency is not established if MTU is mismatched.

set cost

Interface cost used to calculate the best path to reach other routers in the same area. 0 means auto-cost.

integer

0—65535

config ospf-interface

config ospf-interface

Description: Configure OSPF interface settings.

config ospf-interface

edit <name>

set status [enable | disable]

set *interface <name1>

set mtu-ignore [enable | disable]

set cost [0 – 65535]

unset

next

show

abort

end

delete <name>

purge

show

end

Sample command:
config ospf-interface
  edit 1
    set status enable
    set interface opaq
    set mtu-ignore enable
    set cost 5
end
Parameter Description Type Size Default
config ospf-interface OSPF interface configuration. option - none
status

Enable/Disable OSPF processing on the said interface.

option -
Option Description
enable Enable OSPF processing on the said interface.
disable Disable OSPF processing on the said interface.

set interface

Must be the VPN tunnel interface as OSPF is built over IPSEC VPN.

set mtu-ignore

Prevents OSPF neighbor adjacency failure caused by mismatched MTUs.

Option Description
enable OSPF will stop detecting mismatched MTUs before forming OSPF adjacency
disable

OSPF will detect mismatched MTUs, and OSPF adjacency is not established if MTU is mismatched.

set cost

Interface cost used to calculate the best path to reach other routers in the same area. 0 means auto-cost.

integer

0—65535