R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference

85
Usage guidelines
The stratum level of a clock defines the clock precision. The value is in the range of 1 to 16. The clock
precision decreases from stratum 1 to stratum 16. A stratum 1 clock has the highest precision, and a
stratum 16 clock is not synchronized.
Examples
# Specify the local clock as the reference source, with the stratum level 3.
<Sysname> system-view
[Sysname] ntp-service refclock-master 3
ntp-service reliable authentication-keyid
Use ntp-service reliable authentication-keyid to specify that the created authentication key is a trusted
key. When NTP authentication is enabled, a client can be synchronized only to a server that can provide
a trusted authentication 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 authentication key is configured to be trusted.
Views
System view
Default command level
3: Manage level
Parameters
keyid: Specifies an authentication key number in the range of 1 to 4294967295.
Examples
# Enable NTP authentication, specify to use MD5 encryption algorithm, with the key ID of 37 and key
value of BetterKey.
<Sysname> system-view
[Sysname] ntp-service authentication enable
[Sysname] ntp-service authentication-keyid 37 authentication-mode md5 BetterKey
# Specify this key as a trusted key.
[Sysname] ntp-service reliable authentication-keyid 37
ntp-service source-interface
Use ntp-service source-interface to specify the source interface for NTP messages.
Use undo ntp-service source-interface to restore the default.
Syntax
ntp-service source-interface interface-type interface-number