You can authenticate time synchronization to ensure that a C-series Controller obtains its time services only from known sources. By default, network time synchronization is unauthenticated; the system synchronizes to whatever system appears to have the most accurate time. We highly recommend that you configure authentication of network time services.
Use the following configuration mode statements to configure authentication for NTP on a C-series Controller:
- system ntp {
- trusted-key [trusted-key...];
- }
- system ntp authentication-key key-number {
- value value;
- }
- system ntp broadcast address {
- key key ;
- }
- system ntp peer address {
- key key;
- }
- system ntp server address {
- key key;
- }
To configure NTP authentication:
Only time servers transmitting network time packets that contain one of the specified key numbers and whose key matches the value configured for that key number are eligible for synchronization. Other systems can synchronize with the local system without being authenticated.
where trusted-key is a value in the range 1–2147483647.
For example:
For example:
The system transmits the specified authentication key when transmitting packets. The key is necessary if the remote system has authentication enabled so that it can synchronize with the local system.
- [edit system ntp]
- user@host# edit authentication-key key-number
- [edit system ntp authentication-key key-number ]
- user@host# set value value
The key-number is the key number for the key. The key number must match on all systems using that particular key for authentication.
For example:
- [edit system ntp]
- user@host# edit authentication-key 1
- [edit system ntp authentication-key 1]
- user@host# set value X7VY4ZE
[edit system ntp]
user@host# show
trusted-key 1;
server 192.0.2.30 key 1;
authentication-key 1 {
value ********;
}