To do… Use the command… Remarks
Multicast server mode:
ntp-service multicast-server
authentication-keyid keyid
NOTE:
The procedure for configuring NTP authentication on a server is the same as on a client. Also,
the same
authentication key must be configured on both the server and client.
Displaying and maintaining NTP
To do… Use the command… Remarks
Display information about NTP
service status
display ntp-service status [ |
{ begin | exclude | include }
regular-expression ]
Available in any view
Display information about NTP
sessions
display ntp-service sessions
[ verbose ] [ | { begin | exclude |
include } regular-expression ]
Available in any view
Display the brief information about
the NTP servers from the local
device back to the primary
reference source
display ntp-service trace [ | { begin
| exclude | include }
regular-expression ]
Available in any view
NTP configuration examples
Configuring NTP client/server mode
Network requirements
Perform the following configurations to synchronize the time between Device B and Device A:
• As shown in Figure 23, the local clock of Device A is to be used as a reference source, with the
stratum level of 2.
• Device B works in client/server mode and Device A is to be used as the NTP server of Device B.
Figure 23 Network diagram for NTP client/server mode configuration
1.0.1.11/24 1.0.1.12/24
Device A Device B
Configuration procedure
1. Set the IP address for each interface as shown in Figure 23. (Details not shown)
2. Configure Device B:
# View the NTP status of Device B before clock synchronization.
<DeviceB> display ntp-service status
61