Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
deralica
New Contributor II

Cannot edit "default" interface through CLI

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

3 REPLIES 3
tatereal
New Contributor


@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
New Contributor II

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

"jack of all trades, master of none"
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors