Skip to main content
deralica
New Member
February 24, 2025
Question

Cannot edit "default" interface through CLI

  • February 24, 2025
  • 1 reply
  • 1801 views

Hello,

 

I've come accross a problem, where I need to edit an interface through the CLI.

The interface is a VLAN under FortiLinks, and is called "default".

When I try to edit using the "edit in CLI" button, or con sys int through CLI, I get:

 

FortigateName (interface) # edit "default"
The input 'default' can't be interface name.
node_check_object fail! for name default

 

Is there a way to bypass this so I'm able to edit cli-only settings ?

Thanks,
FG101F - FortiOS 7.4.7

1 reply

tatereal
Visitor III
February 24, 2025

@deralica wrote:

Hello,

 

I've come accross a problem, where I need to edit an interface through the CLI.

The interface is a VLAN under FortiLinks, and is called "default".

When I try to edit using the "edit in CLI" button, or con sys int through CLI, I get:

 

FortigateName (interface) # edit "default"
The input 'default' can't be interface name.
node_check_object fail! for name default

 

Is there a way to bypass this so I'm able to edit cli-only settings ?

Thanks,
FG101F - FortiOS 7.4.7


The issue happens because "default" is a reserved word in FortiOS, so you can't edit it in the CLI. To fix this, rename the interface using the FortiGate GUI. Go to Network > Interfaces, find "default," and change its name to something else like "VLAN_FortiLink." If you need CLI-only settings, another way is to edit the configuration file. First, back up your settings, then download and open the file in a text editor. Find the "default" interface, rename it, save the file, and upload it back before rebooting. Make sure to check if any firewall rules or services use the old name to avoid issues. If renaming isn’t possible, create a new VLAN with the settings you need and switch over.

 
deralica
deralicaAuthor
New Member
February 24, 2025

Thank you. "Default" is not it's alias, it's the default name used the system when the interface was first created some years ago. I can change its alias but not its real name (like wan1, X1, etc.)

I thought about changing it's config and reuploading it, but hoped it was my last resort and not my ONLY resort.

Thanks for the reply !

funkylicious
SuperUser
SuperUser
February 24, 2025