
43
Configuring SNTP
SNTP is a simplified, client-only version of NTP specified in RFC 4330. SNTP supports only the
client/server mode. An SNTP-enabled device can receive time from NTP servers, but cannot provide
time services to other devices.
SNTP uses the same packet format and packet exchange procedure as NTP, but provides faster
synchronization at the price of time accuracy.
If you specify multiple NTP servers for an SNTP client, the server with the best stratum is selected. If
multiple servers are at the same stratum, the NTP server whose time packet is first received is
selected.
Configuration restrictions and guidelines
Follow these restrictions and guidelines when you configure SNTP:
•
You cannot configure both NTP
and SNTP on the same device.
•
Make sure you use the
clock protocol
command to specify the time protocol as NTP.
Configuration task list
Tasks at a glance
(Required.)
(Required.)
Specifying an NTP server for the device
(Optional.)
Configuring SNTP authentication
Enabling the SNTP service
The NTP service and SNTP service are mutually exclusive. You can only enable either NTP service
or SNTP service at a time.
To enable the SNTP service:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable the SNTP service.
sntp enable
By default, the SNTP service is
not enabled.
Specifying an NTP server for the device
Step Command
Remarks
1.
Enter system view.
system-view
N/A