117
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
When you configure SNTP, follow these restrictions and guidelines:
•
You cannot configure both NTP
and SNTP on the same device.
•
Make sure you use the
clock protocol
command on the specfied Multitenant Device Context
(MDC) to specify the time protocol as NTP.
•
You can configure SNTP only on one MDC.
Configuration task list
Tasks at a glance
(Required.)
(Required.)
Specifying an NTP server for the device
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