HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
110
Usage guidelines
Usually an NTP server that gets its time from an authoritative time source, such as an atomic clock has
stratum 1 and operates as the primary time server to provide time synchronization for other devices in the
network. The accuracy of each server is the stratum, with the topmost level (primary servers) assigned as
one and each level downwards (secondary servers) in the hierarchy assigned as one greater than the
preceding level.
If the devices in a network cannot synchronize to an authoritative time source, you can select a device that
has a relatively accurate clock from the network, and use the local clock of the device as the reference
clock to synchronize other devices in the network.
Use this command with caution to avoid time errors. Before you execute the command, HP recommends
that you adjust the local system time.
Examples
# Specify the local clock as the reference source, with the stratum level 2.
<Sysname> system-view
[Sysname] ntp-service refclock-master 2
ntp-service reliable authentication-keyid
Use ntp-service reliable authentication-keyid to specify the created authentication key as a trusted key.
Use undo ntp-service reliable authentication-keyid to remove the configuration.
Syntax
ntp-service reliable authentication-keyid keyid
undo ntp-service reliable authentication-keyid keyid
Default
No trust key is specified.
Views
System view
Predefined user roles
network-admin
Parameters
keyid: Specifies an authentication key number in the range of 1 to 4294967295.
Usage guidelines
When NTP authentication is enabled, a client can be synchronized only to a server that can provide a
trusted authentication key.
Before you use the command, make sure NTP authentication is enabled and an authentication key is
configured. The key automatically changes to untrusted after you delete the key. In this case, you do not
need to execute the undo ntp-service reliable authentication-keyid command.
You can set up to 128 keys by executing the command.
Examples
# Enable NTP authentication, specify the MD5 algorithm, with the key ID of 37 and key value of
BetterKey.