< Home

ntp-service reliable authentication-keyid

Function

The ntp-service reliable authentication-keyid command specifies the authentication key to be reliable.

The undo ntp-service reliable authentication-keyid command cancels the current setting.

By default, no authentication key is specified to be reliable.

Format

ntp-service reliable authentication-keyid key-id

undo ntp-service reliable authentication-keyid key-id

Parameters

Parameter Description Value
authentication-keyid key-id Specifies the key number. It is an integer ranging from 1 to 4294967295.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

If the identity authentication is enabled, this command is used to specify that one or more keys are reliable. That is, the client can only synchronize the server that provides the reliable key. The client cannot synchronize the server that provides unreliable keys.

Example

# Enable the identity authentication in NTP and adopt the Message Digest Algorithm 5 (MD5) encryption mode with key number as 37 and the key as Huawei-123. Specify the key to be reliable.

<sysname> system-view
[sysname] ntp-service authentication enable
[sysname] ntp-service authentication-keyid 37 authentication-mode md5 Huawei-123
[sysname] ntp-service reliable authentication-keyid 37
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >