ntp

This command configures Network Time Protocol (NTP) for updating the device's date and time.

Syntax

(config-system)# ntp
(ntp)# 

Command

Description

auth-key-id

Defines the NTP authentication key identifier (string) for authenticating NTP messages.

auth-key-md5

Defines the authentication key (string) shared between the device (client) and the NTP server, for authenticating NTP messages.

ntp-as-oam {off|on}

Defines the location of the Network Time Protocol (NTP).

primary-server

Defines the NTP server FQDN or IP address.

secondary-server

Defines the NTP secondary server FQDN or IP address.

update-interval

Defines the NTP update time interval (in seconds).

Command Mode

Privileged User

Example

This example configures an NTP server with IP address 10.15.7.8 and updated every hour (3,600 seconds):

(config-system)# ntp
(ntp)# primary-server 10.15.7.8
(ntp)# update-interval 3600