2310 CHAPTER 152: NTP CONFIGURATION COMMANDS

Description

Use the ntp-servicerefclock-mastercommand to configure the local clock as a

 

reference source for other devices.

 

Use the undo ntp-servicerefclock-mastercommand to remove the local clock

 

as a reference source.

n

The stratum level of a clock defines the clock precision. The value range is 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 and cannot be

 

used as a reference clock.

Example

# Specify the local clock as the reference source, with the stratum level of 3.

 

<Sysname> system-view

 

[Sysname] ntp-service refclock-master 3

ntp-service reliable authentication-keyid

Syntax ntp-service reliable authentication-keyid keyid

undo ntp-service reliable authentication-keyid keyid

View System view

Parameter keyid: Authentication key number, in the range of 1 to 4294967295.

Description Use the ntp-service reliable authentication-keyid command to specify that the created authentication key is a trusted key. When NTP authentication enabled, a client can be synchronized only to a server that can provide a trusted authentication key.

Use the ntp-service reliable authentication-keyid command to remove an authentication key as a trusted key.

No authentication key is configured to be trusted by default.

Example # Enable NTP authentication, specify to use MD5 encryption algorithm, with the key ID of 37 and key value of “BetterKey”, and specify that this key is a trusted key.

<Sysname> system-view

[Sysname] ntp-service authentication enable

[Sysname] ntp-service authentication-keyid 37 authentication-mode md

5 BetterKey

[Sysname] ntp-service reliable authentication-keyid 37

ntp-service source-interface

Syntax ntp-servicesource-interfaceinterface-type interface-number

undo ntp-service source-interface

Page 2310
Image 2310
3Com MSR 30, MSR 50 Ntp-service reliable authentication-keyid, Ntp-service source-interface, Used as a reference clock