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.
Ylli_Seitaj
Staff
Staff
Article Id 306148
Description This article describes how to remove the interface named 'default' on any of 7.x FortiOS versions.
Scope FortiGate v7.0.x, v7.2.x, and v7.4.x.
Solution

After upgrading from v6.x to any of the 7.x versions, if an interface named 'default' is configured on v6.x, and if the interface is still with the name 'default' after the upgrade, it is not possible to edit or delete the interface from the CLI.

 

Below is an example of an interface named 'default' on FortiOS v7.0.13:

 

config system interface

        edit "default"

           set vdom "root"

           set ip x.x.x.x y.y.y.y

           set allowaccess ping https

           set role wan

           set interface <interface_name>

           set vlanid 1

                next

    end

 

When trying to edit or delete the interface named 'default', the following outputs will be received:

 

config system interface

    edit "default"

    The input 'default' can't be interface name

    node_check_object fail! for name default

 

    value parse error before 'default'

    Command fail. Return code -651

 

config system interface

    delete "default"

    The input 'default' can't be interface name

    node_check_object fail! for name default

 

    value parse error before 'default'

    Command fail. Return code -651

 

As per the above outputs, it is not possible to edit and delete the interface from CLI.

 

To remove the interface named 'default', schedule a maintenance window, rename the interface along with the references, and restore the updated configuration on the FortiGate.

 

Note:

Any configuration change made to the interface with the name 'default' will encounter the same error and therefore will not be saved.

While DHCP server configuration is technically not part of interface configuration, the FortiGate GUI will show an error when trying to confirm a new entry in Network -> Interfaces -> Edit 'default' -> 'IP Address Assignment Rules'
.

 

306148_2025_09_16.PNG

 

As a workaround, the DHCP reservation can be configured from FortiGate CLI:

config system dhcp server

    edit <index>

        set interface "default"

            config reserved-address

                edit 1

                    set ip A.B.C.D

                    set mac aa:aa:aa:aa:aa:aa

                next

            end

    next

end