Created on 08-11-2023 06:29 AM Edited on 10-14-2024 05:31 AM By Stephen_G
Description | This article describes the necessary steps to restore a FortiGate appliance in the context of restoring a FortiGate appliance after an RMA. |
Scope | Any FortiGate appliance. |
Solution |
Restore firmware on regular FortiGate:
First, it is important to have the firmware that needs to be restored.
Next, connect to the console port of the FortiGate. The default account is 'admin' with no password. After connecting, run the following command:
show system interface | grep -f 192.168.1.99
The results should appear similar to the following:
show system interface | grep -f 192.168.1.99 config system interface edit "mgmt" set ip 192.168.1.99 255.255.255.0 set allowaccess ping https ssh http telnet fgfm next end
It will provide the interface name where the default IP address is configured. It may sometimes be a dedicated management interface, or it may be an inband interface such as port1, 2, or 3.
Connect the laptop NIC to the interface retrieved from the last with an RJ45 cable.
Browse to https://192.168.1.99 and enter the username and password. If the admin account’s password was not changed, use the default username, admin, and leave the password field blank.
To upgrade the firmware in the GUI:
The FortiGate unit backs up the current configuration to the management computer, uploads the firmware image file, upgrades to the new firmware version, and restarts. This process takes a few minutes.
To upgrade the firmware in the CLI:
execute ping <tftp_ipv4>
execute restore image tftp <filename> <tftp_ipv4>
The FortiGate unit will responds with the following message:
This operation will replace the current firmware version! Do you want to continue? (y/n)
execute update-now
After the upgrade, connect to FortiGate via console or SSH and check the installed firmware:
get system status | grep build Version: FortiGate-1101E v6.4.5,build1828,210217 (GA)
Restore the configuration file on a regular FortiGate
First, it is important to have the configuration that needs to be restored.
In am HA cluster design, make sure to restore the correct configuration among the two members of the cluster. Both files look very similar, but they have significant differences.
Secondly, setup the following IP address on the laptop NIC: @ip 192.168.1.10 Mask 255.255.255.0.
Next, connect to the console of the FortiGate. The default account is 'admin' with no password.
Once connected, run the following command:
show system interface | grep -f 192.168.1.99
The output should be similar to the following:
show system interface | grep -f 192.168.1.99 config system interface edit "mgmt" set ip 192.168.1.99 255.255.255.0 <--- set allowaccess ping https ssh http telnet fgfm set type physical set dedicated-to management set role lan set snmp-index 2 next end
The output will provide the interface name where the default IP address is configured. Sometimes, it may be a dedicated management interface. Other times, it may be an inband interface like port1, 2, 3, etc.
Connect the laptop NIC to the interface retrieved from the last with an RJ45 cable.
Browse to https://192.168.1.99 and enter the appropriate username and password. If the admin account password has not been changed, the default username is 'admin', and the password field should be left blank.
To restore the FortiGate configuration using the GUI:
diagnose debug config-error-log read It will show if there was any config related error while restoring the configuration file.
To restore the FortiGate configuration using the CLI, copy the configuration file to the TFTP root directory and run the following command:
execute restore config tftp <backup_filename> <tftp_server> <password(if any)> |
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 2024 Fortinet, Inc. All Rights Reserved.