If you've spent any time configuring user authentication on... Full Story
By Manny Fernandez
May 13, 2026
Replacing a FortiGate managed FortiSwitch
FortiSwitches are pretty rock solid from Mean Time Between Failures (MTBF), but if you had a situation where a FortiSwitch, being managed through a FortiGate with FortiLink fails, here are the steps to replace a downed switch. The key command is execute replace-device fortiswitch, which transfers the failed switch’s configuration to the new unit by remapping the serial number.
Procedure (non-MCLAG, standard FortiLink-managed switch)
1. Physically remove the failed FortiSwitch from the network, don’t connect the replacement yet.
2. Deauthorize the failed switch on the FortiGate (optional but clean):
config switch-controller managed-switch
edit <failed_serial_number>
set fsw-wan1-admin disable
end
3. Prep the replacement switch in isolation (not connected to the production network):
– If it’s not factory-fresh, run execute factoryreset on it.
– Upgrade its firmware to match the version that was running on the failed switch. Mismatched firmware is the most common cause of trouble.
– If the failed switch had split ports configured, log in and apply the same config switch phy-mode settings.
4. Run the replace-device command on the FortiGate
execute replace-device fortiswitch <failed_serial_number> <replacement_serial_number>
This is the magic step, the FortiGate keeps all the configuration (VLANs, port settings, policies, etc.) tied to the old serial number and just remaps it to the new switch’s serial.
5. Connect the replacement switch to the network via its FortiLink port. It should come up, get authorized, and pull down the full configuration from the FortiGate.
A few gotchas
– The replacement should be the same model as the failed one. Different models have different port layouts and the configuration won’t map cleanly.
– Firmware version must match before you plug it in, otherwise the FortiGate may push a different config or the switch may behave inconsistently during onboarding.
– If the failed switch is part of an MCLAG pair, only connect the ICL (inter-chassis link) initially to avoid loops, then bring up the other links once it’s stable. Fortinet specifically recommends backing up the failed switch’s config, restoring it to the replacement offline, then running the replace-device command before physically swapping.
– If you don’t use replace-device, the new switch will show up as a brand new unit and you’d have to manually reconfigure all the port assignments, VLANs, etc.
The whole point of execute replace-device fortiswitch is exactly your use case, bad switch, want to keep config, so that one command is really the answer.
Recent posts
-
-
DNS is one of those technologies that quietly underpins... Full Story
-
BGP issues on FortiGate firewalls usually trace back to... Full Story
-
Every time your laptop talks to your router, a... Full Story
-
If you've spent any time configuring NAT on a... Full Story
-
If you have spent any time configuring firewall policies... Full Story
-
High availability on FortiGate is one of those features... Full Story
-
If you've configured SD-WAN on a FortiGate, you've almost... Full Story
-
FortiLink is the management protocol that turns a FortiSwitch... Full Story
-
FortiSwitches are pretty rock solid from Mean Time Between... Full Story
-
This is a quicky tip. Have you ever gone... Full Story
-
DNS is one of those quiet pieces of internet... Full Story
-
This article is an updated version of the previous... Full Story
-
You will add ns2 as a secondary (slave) BIND9... Full Story
-
In the process of deploying my lab, I needed... Full Story
-
RFC 8805, used to be known as Self-Correcting IP... Full Story
-
Years back, I wrote an article about certificate pinning. ... Full Story
-
FortiGates have the ability to send alerts to Microsoft... Full Story
-
In this post, I am going to walk through... Full Story
-
Troubleshooting VoIP on a FortiGate can feel like trying... Full Story
-
Prior to FortiOS 7.0, there were three commands to... Full Story
-
In this post, I am going to go over... Full Story
-
What we are going to do: We are going... Full Story
-
Choosing between FGCP (FortiGate Clustering Protocol) and FGSP (FortiGate... Full Story
-
Creating a VLAN on macOS (The "Pro" Move) A... Full Story
-
This blog post explores the logic behind how macOS... Full Story
-
Pretty Fly for a Wi-Fi Tell My Wi-Fi Love... Full Story
-
Part of my daily gig is creating BoMs (Bill-of-Materials)... Full Story
-
ICMP introduces several security risks, but careful filtering, rate... Full Story
-
The command diag debug application dhcps -1 enables full... Full Story
-
In the world of FortiOS, execute tac report is... Full Story
-
LLDP; What is it The Link Layer Discovery Protocol... Full Story
-
What it actually does When you run diagnose fdsm... Full Story
-
Monkey Bites are bite-sized, high-impact security insights designed for... Full Story
-
I have run macOS in macOS with Parallels but... Full Story
-
Don't be confused with my other FortiNAC posts where... Full Story
-
This is the third session in a multi-part article... Full Story
-
Today I was configuring key-based authentication on a FortiGate... Full Story
-
Netcat, often called the "Swiss Army knife" of networking,... Full Story
-
At its core, IEEE 802.1X is a network layer... Full Story
-
In case you did not see the previous FortiNAC... Full Story
-
This is our 5th session where we are going... Full Story
-
Now that we have Wireshark installed and somewhat configured,... Full Story
-
The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story
-
1. High-Level Overview The FortiGate Wireless Intrusion Detection System... Full Story
-
What MIMO Actually Does Multiple Input, Multiple Output (MIMO)... Full Story
-
A practitioner's tour of the diagnose, test, and fnsysctl... Full Story