Skip to main content
zendodg
Staff
Staff
Jul 22, 2026 2:50 PM UTC

Technical Tip: Why it is not possible to rename a FortiSwitch in a Multi-Tenancy Environment

Description

This article describes why it is not possible to rename a FortiSwitch in a 'Multi-Tenancy' environment.

Scope

FortiGate, FortiSwitch, FortiOS v7.4.x and above.

Solution

'Multi-Tenancy' refers to the process of exporting FortiSwitch ports from a VDOM to another on FortiOS.

The following error is seen upon trying to rename a switch in a 'Multi-Tenancy' environment:

FGT-LAB (managed-switch) # rename S124FPTM12345678 to SwAcceso1
Multi tenancy parent switch S124FPTM12345678 cannot be renamed.
Command fail. Return code 1


This option is blocked because the configuration name in different VDOMS should match in configuration options.

The workaround is to 'un-export' all ports from VDOMs and then export them again.

config switch-controller managed-switch
    edit <switch-id>
        config ports
            edit "portX"
                unset export-to
            next
        end
    next
end


Rename FortiSwitch:

config switch-controller managed-switch
    rename <old-id> to <new-name>
end


And finally, export the FortiSwitch ports to VDOMs again.

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024