Configuration Guide Configuring NTP
authentication for DEVICE-C. The authentication key is "abcd".
DEVICE-A is used as the reference clock source of DEVICE-B.
DEVICE-C synchronizes time with DEVICE-B.
DEVICE-B configures DEVICE-A as the reference clock source.
DEVICE-C configures DEVICE-B as the reference clock source.
B#configure terminal
B(config)# ntp authentication-key 1 md5 abcd
B(config)# ntp trusted-key 1
B(config)# ntp server 192.168.1.1
B(config)# exit
C#configure terminal
C(config)# ntp authentication-key 1 md5 abcd
C(config)# ntp server 192.168.2.1 key 1
C(config)# exit
DEVICE-B sends a time synchronization packet that carries authentication information to 192.168.1.1
in order to synchronize time with DEVICE-A.
Run the show clock command on DEVICE-B to check whether the time synchronization is successful.
13.4.3 Configuring NTP Access Control
Configuration Effect
Access control for NTP services provides a minimum security measure. A more secure method is to use an NTP
authentication mechanism.
Notes
Currently, the system does not support control query (used to control NTP servers by using network management
devices, such as setting the leap second indicator or monitoring its working status). Though rule matching is
implemented in the preceding sequence, no request related to control query is supported.
If no access control rule is configured, all accesses are allowed. If any access control rule is configured, only accesses
allowed by the rule can be implemented.
Related Configuration
Configuring the Access Control Rights for NTP
Optional.
Run the ntp access-group command to configure the access control rights and a corresponding ACL for NTP.