Command Reference    NTP Commands 
 
 
Parameter 
Description 
Parameter  Description 
 
key-id 
Key ID 
 
key-string  
Key string 
 
enc-type 
(Optional) Whether this key is encrypted. 
0 indicates the key is not encrypted, and 7 indicates the key is 
encrypted simply. 
 
 
Defaults  
N/A 
 
 
Command 
Mode 
Global configuration mode 
 
 
Usage Guide  Configure the global authentication key and adopt md5 for encryption. Each key has unique key-id. 
You can use the ntp trusted-key to set the key of key-id as the global trusted key. 
At most 1024 keys are allowed. However, each server can support only one key. 
 
 
Configuration 
Examples 
The following example configures an authentication key with ID 6. 
Ruijie(config)# ntp authentication-key 6 md5 wooooop 
 
 
Related 
Commands 
Command  Description 
 
ntp authenticate 
Enables the global security identification 
mechanism. 
 ntp trusted-key 
Configures the global trusted key. 
 ntp server 
Specifies an NTP server. 
 
 
Platform 
Description 
N/A 
ntp disable 
 
Use this command to disable the function of receiving the NTP packet on the interface. 
 ntp disable 
 
Parameter 
Description 
Parameter  Description 
 
N/A N/A 
 
 
Defaults  
The NTP packet is received on the interface by default. 
 
 
Command 
Interface configuration mode