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 7.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 CLI.

 

Below is an example of an interface named "default" on FortiOS 7.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', will receive the below outputs:

 

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, 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.