system : ntp
 
ntp
Use this command to configure Network Time Protocol (NTP) servers.
Syntax
config system ntp
set ntpsync {enable | disable}
set source-ip <ipv4_addr>
set syncinterval <interval_int>
set type {fortiguard | custom}
set server-mode {enable | disable}
set interface <interface_list>
config ntpserver
edit <serverid_int>
set authentication {enable | disable}
set key <password_str>
set key-id <int>
set ntpv3 {enable | disable}
set server <ipv4_addr>[/<hostname_str>]
end
end
Variable
Description
Default
interface <interface_list>
Enter a space-separated list of interfaces on which the NTP server is available. This is available when server-mode is enabled.
No default.
ntpsync {enable | disable}
Enable to synchronize FortiGate unit’s system time with the ntp server.
disable
server-mode {enable | disable}
Enable of disable FortiGate unit NTP server.
disable
source-ip <ipv4_addr>
Enter the source IP for communications to the NTP server.
0.0.0.0
syncinterval <interval_int>
Enter the interval in minutes between contacting NTP server to synchronize time. The range is from 1 to 1440 minutes.
Only valid when ntpsync is enabled.
0
type {fortiguard | custom}
Select FortiGuard or custom NTP server.
fortiguard
config ntpserver fields
Configures custom NTP time source.
 
edit <serverid_int>
Enter the number for this NTP server
 
authentication {enable | disable}
Enable or disable MD5 authentication.
disable
key <password_str>
Enter the password for MD5 authentication.
null
key-id <int>
Enter the Key-ID value for MD5 authentication.
0
ntpv3 {enable | disable}
Use NTPv3 protocol instead of NTPv4.
disable
server <ipv4_addr>[/<hostname_str>]
Enter the IPv4 address and hostname (optional) for this NTP server.