Created on
‎03-24-2024
09:39 PM
Edited on
‎09-17-2025
12:10 AM
By
Jean-Philippe_P
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.
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 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.