No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


Fat AP and Cloud AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
ntp-service authentication-keyid

ntp-service authentication-keyid


The ntp-service authentication-keyid command sets NTP authentication key.

The undo ntp-service authentication-keyid command removes NTP authentication key.

By default, no authentication key is set.


ntp-service authentication-keyid key-id authentication-mode { md5 | hmac-sha256 } [ cipher ] password

undo ntp-service authentication-keyid key-id


Parameter Description Value
key-id Indicates the key number. Key ID is an integer and ranges from 1 to 4294967295.
authentication-mode md5 Indicates MD5 authentication mode. -
authentication-mode hmac-sha256 Indicates HMAC-SHA256 authentication mode. -

Indicates that the configured password is displayed in cipher text.

If this parameter is not specified, the configured password is displayed in cipher text.


Specifies the authentication password in plain text or in cipher text.

The value is a string of case-sensitive characters without spaces. The string length range is:
  • 1 to 255 characters in plain text.
  • 48 to 348 characters in cipher text.
The system checks the password complexity. The password that fails the check cannot take effect. The community name must meet the following requirements:
  • The community name contains at least eight characters.

  • The community name must be a combination of at least two of the following: uppercase letters, lowercase letters, digits, and special characters.


System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network that requires high security, the NTP authentication must be enabled. You can configure password authentication between client and server, which guarantee the client only to synchronize with server successfully authenticated, and improve network security. If the NTP authentication function is enabled, a reliable key should be configured at the same time. Keys configured on the client and the server must be identical.

In NTP symmetric peer mode, the symmetric active peer functions as a client and the symmetric passive peer functions as a server.

Follow-up Procedure

You can configure multiple keys for each device. After the NTP authentication key is configured, you need to set the key to reliable using the ntp-service reliable authentication-keyid command. If you do not set the key to reliable, the NTP key does not take effect.


You can configure a maximum of 1024 keys for each device.

If the NTP authentication key is a reliable key, it automatically becomes unreliable when you delete the key. You do not need to run the undo ntp-service reliable authentication-keyid command.


# Set the MD5 identity authentication key. The key ID number is 10, and the key is Betterkey.

<Huawei> system-view
[Huawei] ntp-service authentication-keyid 10 authentication-mode md5 BetterKey

# Set authentication text to BetterKey123 in MD5 authentication with cipher option.

<Huawei> system-view
[Huawei] ntp-service authentication-keyid 10 authentication-mode md5 cipher BetterKey123 
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 202905

Downloads: 122

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Previous Next