Command Reference NTP Commands
the encrypted communication of the server. It requires the server presents identical global encryption
key and global trust key to complete the encrypted communication with the server.
In the same condition (for instance, precision), the prefer clock is used for synchronization.
The source interface of NTP packets must be configured with the IP address and can be
communicated with the peer.
The following example configures an NTP server.
For IPv4: Ruijie(config)# ntp server 192.168.210.222
For IPv6: Ruijie(config)# ntp server 10::2
Use this command to set a global trusted key. Use the no form of this command to remove the global
trusted key.
no ntp trusted-key key-id
Global trusted key ID, ranging from 1 to 4294967295.
Global configuration mode.
The NTP communication parties must use the same trusted key. The key is identified by ID and is not
transmitted to improve security.
The following example configures an authentication key and sets it as a trusted key.
Ruijie(config)#ntp authentication-key 6 md5 wooooop
Ruijie(config)#ntp trusted-key 6
Ruijie(config)#ntp server 192.168.210.222 key 6