User's Manual
574
Chapter 82 NTP Configuration
82.1 Overview
Network Time Protocol (NTP) is a type of computer time synchronization protocol which can be used for
time synchronization between distributed time servers and clients. It has highly accurate time correction
function and can prevent malicious protocol attacks through encrypted authentication. Clients and servers
communicate through the User Datagram Protocol (UDP), and the port number is 123.
82.2 NTP Configuration
82.2.1 Configuring the Equipment As an NTP Server
Configuration mode: Global
Command Purpose
ntp master primary
In the event that the equipment does not have
an upper-level NTP server, configure the
equipment as the original NTP server
(stratum = 1).
ntp master secondary
In the event that the equipment has an upper-
level NTP server, configure the equipment as
the secondary NTP server.
(In other words, the equipment cannot
provide time synchronization service for NTP
clients unless the "ntp server" command is
configured and time synchronization is
achieved in designated servers.)
82.2.2 Configuring NTP Authentication Function
Configuration mode: Global
Command Purpose
ntp authentication enable
Enable the authentication function (disabled
by default).
ntp authentication key
keyid
md5
password
Configure NTP md5 authentication keyid and
corresponding keys.
ntp authentication trusted-key
keyid
Configure the keyid corresponding key as the
trusted key.
82.2.3 Configuring NTP Association
Configuration mode: Global
Command Purpose
ntp server
ip-address
[
version
number
|
key
keyed |
vrf
vrf-name]*
Configure the IP address of NTP server; the
version number, key number, and vrf instance