Step
5.
Associate the SNTP
authentication key with an
NTP server.
Displaying and maintaining SNTP
Execute display commands in any view.
Task
Display information about all IPv6 SNTP associations.
Display information about all IPv4 SNTP associations.
SNTP configuration example
Network requirements
As shown in
•
Configure the local clock of Device A as a reference source, with the stratum level 2.
•
Configure Device B to operate in SNTP client mode, and specify Device A as the NTP server.
•
Configure NTP authentication on Device A and SNTP authentication on Device B.
Figure 17 Network diagram
Configuration procedure
1.
Set the IP address for each interface, and make sure Device A and Device B can reach each
other, as shown in
2.
Configure Device A:
# Enable the NTP service.
<DeviceA> system-view
[DeviceA] ntp-service enable
# Configure the local clock of Device A as a reference source, with the stratum level 2.
[DeviceA] ntp-service refclock-master 2
# Enable NTP authentication on Device A.
[DeviceA] ntp-service authentication enable
Command
•
•
Figure
17:
Figure
17. (Details not shown.)
For IPv4:
sntp unicast-server
{ server-name | ip-address }
authentication-keyid keyid
For IPv6:
sntp ipv6 unicast-server
{ server-name |
ipv6-address }
authentication-keyid keyid
Command
display sntp ipv6 sessions
display sntp sessions
45
Remarks
By default, no NTP server is
specified.