Fortinet white logo
Fortinet white logo

CLI Reference

config system ntp

config system ntp

Configure system NTP information.

config system ntp
    Description: Configure system NTP information.
    set ntpsync [enable|disable]
    set type [fortiguard|custom]
    set syncinterval {integer}
    config ntpserver
        Description: Configure the FortiProxy to connect to any available third-party NTP server.
        edit <id>
            set server {string}
            set ntpv3 [enable|disable]
            set authentication [enable|disable]
            set key {password}
            set key-id {integer}
        next
    end
    set source-ip {ipv4-address}
    set server-mode [enable|disable]
    config interface
        Description: FortiProxy interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services.
        edit <interface-name>
        next
    end
end

config system ntp

Parameter

Description

Type

Size

ntpsync

Enable/disable setting the FortiProxy system time by synchronizing with an NTP Server.

option

-

Option

Description

enable

Enable synchronization with NTP Server.

disable

Disable synchronization with NTP Server.

type

Use the FortiGuard NTP server or any other available NTP Server.

option

-

Option

Description

fortiguard

Use the FortiGuard NTP server.

custom

Use any other available NTP server.

syncinterval

NTP synchronization interval .

integer

Minimum value: 1 Maximum value: 1440

source-ip

Source IP for communications to the NTP server.

ipv4-address

Not Specified

server-mode

Enable/disable FortiProxy NTP Server Mode. Your FortiProxy becomes an NTP server for other devices on your network. The FortiProxy relays NTP requests to its configured NTP server.

option

-

Option

Description

enable

Enable FortiProxy NTP Server Mode.

disable

Disable FortiProxy NTP Server Mode.

config ntpserver

Parameter

Description

Type

Size

server

IP address or hostname of the NTP Server.

string

Maximum length: 63

ntpv3

Enable to use NTPv3 instead of NTPv4.

option

-

Option

Description

enable

Enable NTPv3.

disable

Disable NTPv3 (use NTPv4).

authentication

Enable/disable MD5 authentication.

option

-

Option

Description

enable

Enable MD5 authentication.

disable

Disable MD5 authentication.

key

Key for MD5 authentication.

password

Not Specified

key-id

Key ID for authentication.

integer

Minimum value: 0 Maximum value: 4294967295

config system ntp

config system ntp

Configure system NTP information.

config system ntp
    Description: Configure system NTP information.
    set ntpsync [enable|disable]
    set type [fortiguard|custom]
    set syncinterval {integer}
    config ntpserver
        Description: Configure the FortiProxy to connect to any available third-party NTP server.
        edit <id>
            set server {string}
            set ntpv3 [enable|disable]
            set authentication [enable|disable]
            set key {password}
            set key-id {integer}
        next
    end
    set source-ip {ipv4-address}
    set server-mode [enable|disable]
    config interface
        Description: FortiProxy interface(s) with NTP server mode enabled. Devices on your network can contact these interfaces for NTP services.
        edit <interface-name>
        next
    end
end

config system ntp

Parameter

Description

Type

Size

ntpsync

Enable/disable setting the FortiProxy system time by synchronizing with an NTP Server.

option

-

Option

Description

enable

Enable synchronization with NTP Server.

disable

Disable synchronization with NTP Server.

type

Use the FortiGuard NTP server or any other available NTP Server.

option

-

Option

Description

fortiguard

Use the FortiGuard NTP server.

custom

Use any other available NTP server.

syncinterval

NTP synchronization interval .

integer

Minimum value: 1 Maximum value: 1440

source-ip

Source IP for communications to the NTP server.

ipv4-address

Not Specified

server-mode

Enable/disable FortiProxy NTP Server Mode. Your FortiProxy becomes an NTP server for other devices on your network. The FortiProxy relays NTP requests to its configured NTP server.

option

-

Option

Description

enable

Enable FortiProxy NTP Server Mode.

disable

Disable FortiProxy NTP Server Mode.

config ntpserver

Parameter

Description

Type

Size

server

IP address or hostname of the NTP Server.

string

Maximum length: 63

ntpv3

Enable to use NTPv3 instead of NTPv4.

option

-

Option

Description

enable

Enable NTPv3.

disable

Disable NTPv3 (use NTPv4).

authentication

Enable/disable MD5 authentication.

option

-

Option

Description

enable

Enable MD5 authentication.

disable

Disable MD5 authentication.

key

Key for MD5 authentication.

password

Not Specified

key-id

Key ID for authentication.

integer

Minimum value: 0 Maximum value: 4294967295