Step
4.
Specify the key as a
trusted key.
5.
Associate the SNTP
authentication
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 20 Network diagram
NTP server
1.0.1.11/24
Device A
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
Command
[ acl ipv4-acl-number | ipv6 acl
ipv6-acl-number ] *
sntp
keyid
•
For
sntp
{
[
vpn-instance-name
authentication-keyid keyid
key
•
For
sntp
{ server-name | ipv6-address }
[
vpn-instance-name
authentication-keyid keyid
Figure
20:
1.0.1.12/24
Figure
20. (Details not shown.)
reliable
authentication-keyid
unicast-server
server-name
|
ip-address
vpn-instance
ipv6
unicast-server
vpn-instance
SNTP client
Device B
48
Remarks
By default, no trusted key is
specified.
IPv4:
}
]
By default, no NTP server is
specified.
IPv6:
]
Command
display sntp ipv6 sessions
display sntp sessions