Configuration Guide Configuring NTP
After the configuration, the device works in the external clock reference mode.
Real-time Synchronization
A device performs time synchronization every 64 seconds by default.
Updating a Hardware Clock
By default, a device does not update synchronized time to the hardware clock.
Run the ntp update-calendar command to enable a device to automatically update the hardware clock after
successfully synchronizing time each time.
Configuring the NTP Master Clock
By default, a device works in the external clock reference mode.
Run the ntp master command to configure a device to the local clock reference mode.
13.3.2 NTP Security Authentication
To prevent malicious damage on an NTP server, NTP uses the authentication mechanism to check whether the time
synchronization information is really from the announced server and check the information return path to provide an
anti-interference protection mechanism.
Working Principle
An NTP client and an NTP server are configured with the same key. When sending request and response packets, a device
calculates the hash values of the packets by using the MD5 algorithm based on the specified key and NTP packet content,
and fills the hash values into the packet authentication information. The receiving device checks whether the packets are
sent by a trusted device or modified based on the authentication information.
Related Configuration
Configuring a Global Security Authentication Mechanism for NTP
By default, no NTP security authentication mechanism is enabled.
Run the ntp authenticate command to enable the NTP security authentication mechanism.
Configuring a Global Authentication Key for NTP
By default, no global authentication key is configured.
Run the ntp authentication-key command to enable an NTP global authentication key.
Configuring a Globally Trusted Key ID for NTP
By default, no globally trusted key is configured.
Run the ntp trusted-key command to configure a device as the reference clock source to provide a trusted key for time
synchronization externally.