Command Reference NTP Commands
The following example configures the device to act as an authoritative NTP server, and sets the
stratum level to 12:
Ruijie(config)# ntp master 12
Use this command to specify a NTP server for the NTP client. Use the no form of this command to
delete the specified NTP server.
ntp server { ip-addr | domain | ip domain | ipv6 domain } [ version version ] [ source if-name ] [ key
keyid ] [ prefer ]
Sets the IP address of the NTP server. The address can be in IPv4 or
IPv6 format.
Sets the domain name of the NTP server, supporting IPv4 and IPv6.
(Optional) Specifies the NTP version (1-3). The default is NTPv3.
(Optional) Specifies the source interface from which the NTP
message is sent (L3 interface).
(Optional) Specifies the encryption key adopted when communication
with the corresponding server. The key ID range is from 1 to
4,294,967,295.
(Optional) Specifies the given NTP server as the preferred one.
No NTP server is configured by default.
Global configuration mode.
At present, RGOS system only supports clients other than servers. Up to 20 servers can be
synchronized.
To carry out the encrypted communication with the server, set the global encryption key and global
trusted key firstly, and then specify the corresponding key as the trusted key of the server to launch