Specifies or adds an NTP server IP address and optionally associates an authentication key to the server.
No default peer are configured.
Global configuration mode
Use this command to add an NTP server IPv4 or IPv6 address to a list of server IP addresses, or to associate an existing authentication key with an NTP server IP address.
The maximum number of NTP servers allowed is five.
Network Time Protocol (NTP) commands must be configured on each individual switch.
Use the no ntp server ip-address command to remove the specified NTP server IP address. Removing the current active NTP server resets the NTPstatus to "LOCL" until a new, active server is selected.
Use the no ntp server ip-address key key-id command to remove the key from the specified NTP IP address.
By default, all management services are enabled on the management VRF ("mgmt-vrf") and the default VRF ("default-vrf").
To associate a configured key ID of 15 to an NTP server on the management VRF:
device(config)# ntp peer 1.2.3.4 device(config-server-1.2.3.4/mgmt-vrf)# key 15