Description | This article describes how to set up an NTP server and NTP client using two FortiGates and how to troubleshoot. |
Scope | FortiGate. |
Solution |
In practice, NTP clients will be different vendor devices such as PCs, IP phones, etc. It is not possible to provide details of each of these vendors on how to set up the NTP client. Hence in this article, two FortiGates have been used: one as an NTP server and the other as an NTP client.
Configure NTP server: In this setup, the Google NTP time server will be used as the main NTP source:
config system ntp
From the GUI, set this from System -> Settings as in the below screenshot. User settings have to be done from CLI:
Sending the NTP information to downstream devices: DHCP is used to send the NTP information to the downstream client devices.
config system dhcp server It is possible to do it from the GUI under Network -> Interface, select the relevant port, enable the DHCP server, and go to Advance.
Configuring the NTP client. As mentioned previously, another FortiGate will be used as the NTP client. In practice, it will be some other device such as a PC. IP phone etc.
config system ntp
Below is from the GUI:
On the client device, it is necessary to enable the DHCP on the interface to receive the IP along with the NTP information.
Note: To check if the NTP is taken from the correct source, use the below command:
On the client:
dia sys ntp status ipv4 server(10.55.0.45) 10.55.0.45 -- reachable(0xff) S:1 T:5 selected <----- The NTP time is taken from the upstream device interface IP.
On the server:
dia sy ntp status ipv4 server(time1.google.com) 216.239.35.0 -- reachable(0xc3) S:2 T:6 selected <----- NTP time is taken from google time server .
The time on each device is based on the time zone you have selected below:
On the client:
execute time
On the server:
execute time
Troubleshooting Tips:
execute dhcp lease-list <----- Or can use a specific interface. execute dhcp lease-clear all <----- Or can use the specific IP.
|
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.