Created on
11-01-2004
12:00 AM
Edited on
05-19-2023
02:29 PM
By
Mrinmoy
Description
This article describes how to download and install firmware from a local TFTP server via the BIOS, under CLI control.
It is also necessary to install firmware using the local TFTP server if ‘OPEN DEVICE BOOT FAILED’ message appears on console as follows:
Caution: Installing firmware from a local TFTP server under console control will reset the FortiGate unit to factory default settings.
If possible, consider backing up the configuration before starting the TFTP server firmware upgrade.
Component:
- A null modem, or RJ-45 to DB9 console cable, supplied with the FortiGate unit.
- An Ethernet RJ45 cable
- A terminal client, such as a PC running HyperTerminal (Windows)
- A TFTP server
Download the FortiGate firmware and verify the MD5 checksum:
1) Download the required firmware from the Download Firmware Images page.
2) Download and install the TFTP server on the computer. http://tftpd32.jounin.net/tftpd32.html.
3) Disable Windows firewall.
4) Create a directory/ folder and give a name something like TFTP.
5) Move the firewall image to that directory.
6) Rename the image file to image.out.
7) Set computer ethernet interface IP as (IP can be from any subnet):
IP address# 10.10.10.1.
Subnet mask# 255.255.255.0.
8 ) Connect the computer to the FortiGate unit using the null modem cable. For details steps for this connection, please follow the below link:
Terminal client communication parameters:
8 bits
no parity
1 stop bit
9600 baud (the FortiGate-300 uses 115,000 baud)
Flow Control = None
9) Restart the FortiGate.
10) When the console displays 'Press any key to display configuration menu...' press the 'space' bar or any other key.
FortiGate-81E (12:47-03.03.2017)
Ver:05000007
Serial number: FGT81E*********1
CPU: 1000MHz
Total RAM: 2 GB
Initializing boot device...
Initializing MAC... nplite#0
Please wait for OS to boot, or press any key to display the configuration menu.
11) When a list of choices with the letter of the alphabet comes up press 'F' to format the device.
[C]: Configure TFTP parameters.
[R]: Review TFTP parameters.
[T]: Initiate TFTP firmware transfer.
[F]: Format boot device.
[I]: System information.
[B]: Boot with backup firmware and set as default.
[Q]: Quit menu and continue to boot.
[H]: Display this list of options.
Enter C,R,T,F,I,B,Q,or H:
It will erase data in boot device. Continue? [yes/no]:yes
Formatting..........done
Done.
12) Once Formatted the device will boot again.
13) Again a list of choices with the letter of the alphabet comes up press 'R' to review TFTP parameters.
Enter C,R,T,F,I,B,Q,or H:
Image download port: WAN1 -------> This port of the firewall should be connected to the computer ethernet port.
DHCP status: Disabled
Local VLAN ID: <NULL>
Local IP address: 10.1.1.115
Local subnet mask: 255.255.255.0
Local gateway: 10.1.1.1
TFTP server IP address: 10.1.1.1
Firmware file name: FGT_100F-v7.0.0-build0066-FORTINET.out
14) Again a list of choices with the letter of the alphabet comes up press 'C' to configure TFTP parameters.
[C]: Configure TFTP parameters.
[R]: Review TFTP parameters.
[T]: Initiate TFTP firmware transfer.
[F]: Format boot device.
[I]: System information.
[B]: Boot with backup firmware and set as default.
[Q]: Quit menu and continue to boot.
[H]: Display this list of options.
Enter C,R,T,F,I,B,Q,or H:
15) Change the parameter to inline with your TFTP server configuration.
[P]: Set firmware download port.
[D]: Set DHCP mode.
[I]: Set local IP address.
[S]: Set local subnet mask.
[G]: Set local gateway.
[V]: Set local VLAN ID.
[T]: Set remote TFTP server IP address.
[F]: Set firmware file name.
[E]: Reset TFTP parameters to factory defaults.
[R]: Review TFTP parameters.
[N]: Diagnose networking(ping).
[Q]: Quit this menu.
[H]: Display this list of options.
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: ---------------------------->[I]: Set local IP address.
Enter local IP address [10.1.1.115]: 10.10.10.2
.done
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: ---------------------------->[S]: Set local subnet mask.
Enter local subnet mask [255.255.255.0]: 255.255.255.0
.done
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: ------------------------->[G]: Set local gateway.
Enter remote TFTP server IP address [10.1.1.1]: 10.10.10.1
.done
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: --------------------------->[T]: Set remote TFTP server IP address.
Enter remote TFTP server IP address [10.1.1.1]: 10.10.10.1
.done
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: -------------------------->[F]: Set firmware file name.
Enter firmware file name [FGT_100F-v7.0.0-build0066-FORTINET.out]: image.out
.done
Enter P,D,I,S,G,V,T,F,E,R,N,Q,or H: ------------------------->[Q]: Quit this menu.
16) Now press 'T' to initiate TFTP firmware transfer.
Please connect TFTP server to Ethernet port 'WAN1'.
MAC: 94:ff:3c:6e:e9:66
Connect to tftp server 10.10.10.1 ...
#######################################################################################################################################################################################
Image Received.
Checking image... OK
This firmware image is certified!
Save as Default firmware/Backup firmware/Run image without saving:[D/B/R]?D
Programming the boot device now. The system must re-layout the boot device to install this firmware.
The default and backup firmware will be lost.
Continue:[Y/N]?
.. OK
Verifying... OK
.done
Booting OS...
Initializing firewall...
System is starting...
Resizing shared data partition...done
Formatting shared data partition ... done!
Starting system maintenance...
Scanning /dev/mmcblk0p1... (100%)
Scanning /dev/mmcblk0p3... (100%)
FortiGate-81E login: admin
Password:
You are forced to change your password. Please input a new password.
New Password:
Confirm Password:
Welcome!
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 2023 Fortinet, Inc. All Rights Reserved.