Enable NTP Globally
Enable NTP globally. Default values are in effect for most parameters. You can customize NTP by modifying parameters.
Procedure
Example
Specify the time interval between NTP updates, and then enable NTP globally.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#ntp interval 10 Switch:1(config)#ntp
Switch:1(config)#show ntp ========================================================================================= NTP Master ========================================================================================= Version Enabled Stratum ----------------------------------------------------------------------------------------- 4 False 10 ========================================================================================= NTP Client ========================================================================================= Version Enabled Interval Last Update Time Synchronized To ----------------------------------------------------------------------------------------- 3 True 10 Thu Jul 18 08:32:59 2019 EDT 192.0.2.0 (Stratum:2)
Switch:1(config)#show ntp ========================================================================================== NTP ========================================================================================== Version Enabled Interval Last Update Time Synchronized To ------------------------------------------------------------------------------------------ 3 True 10
Variable Definitions
The following table defines parameters for the ntp command.
Variable |
Value |
---|---|
authentication-key <1–65534> WORD<0–20> |
Creates an authentication key for MD5 or SHA1 authentication. To configure this option to the default value, use the default operator with the command. The default configuration is to delete the authentication key. NTP server MD5 or SHA1 authentication does not support passwords (keys) that start with a special character or contain a space between characters. WORD<0–20> specifies the secret key. |
type <md5 | sha1> |
Specifies the type of authentication as MD5 or SHA1. The default is MD5 authentication. |
interval<1–2185> OR <4-17> Note:
Exception: interval range 1-2185 is supported on VSP 8600 Series only. |
VSP 8600 Series: Specifies the time interval between successive NTP updates in minutes. The default for NTPv3 is 15 minutes. The default for NTPv4 is 6 minutes. VOSS switches: Specifies the time interval between successive NTP updates as a power of 2 in seconds. The default for NTPv4 is 2 to the power of 8 seconds. Note:
Exception: NTPv3 is supported on VSP 8600 Series only. To restore the NTP interval to the default value, use the default ntp interval command. |