Skip to main content
dparra
Staff
Staff
September 26, 2024

Troubleshooting Tip: Error when creating mgmt interface

  • September 26, 2024
  • 3 replies
  • 2545 views
Description This article describes clearing an unexpected error when creating an mgmt interface through CLI.
Scope FortiGate, any FortiOS.
Solution

An error may occur when using the command 'set interface mgmt' to create a management interface: 

 

(FG1)# config system interface

(FG1)# edit 1

(1)# set interface "mgmt"

 

node_check_object fail! for interface mgmt

 

If the FortiGate is in HA mode:

 

(FG1)# config system ha

(FG1)# config ha-system-interfaces

(ha-mgmt-interfaces)# edit 1

(1)# set interface "mgmt"


node_check_object fail! for interface mgmt

 

This is due to an existing database entry with the same name, most likely a static route:

 

(FG1)#config router static
(FG1)#show full-configuration
(FG1)# edit 1

      set gateway-ip 10.22.8.1
      set device "mgmt"
    next
end

 

This can be corrected by deleting the static route, provided it is not being used. To clear the static route, use the commands: 

 

(FG1)# config router static
(FG1)# delete 1
(FG1)# end

 

Then flush the routing cache with the command:

 

diagnose ip rtcache flush

 

The command to set the mgmt interface should work afterward.

3 replies

MaryBolano
Staff & Editor
Staff & Editor
September 26, 2024

Great job @dparra !!!

GILMENDO
Staff & Editor
Staff & Editor
September 26, 2024

Thank you for your contribution here! @dparra 

lpedraza
Staff
Staff
September 26, 2024

@dparra Thank you so much for your valuable collaboration!!! 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!