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
@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.
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 !
User | Count |
---|---|
2534 | |
1351 | |
795 | |
641 | |
455 |
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.