Specifies the IPv4 or IPv6
address of the NTP peer.
source-interface-type
Specifies the type of interface.
ethernet
Specifies an Ethernet interface as the source type.
loopback
Specifies a loopback interface as the source type.
management
Specifies a management interface as the source type.
ve
Specifies a VE as the source type.
source-interface-number
Specifies the interface number. Valid values range from 1
through 4096.
keykey_id
Specifies the symmetric key
ID. By default, no symmetric key is configured. The range is 1 to 65,534.
maxpollinterval
Specifies the longest polling
interval. The range is 4 to 17. Default is 10. The interval argument is
power of 2, for example: 3=8s, 4=16s, 5=32s, 6=64s, 7=128s, 8=256s, 9=512s.
minpollinterval
Specifies the shortest
polling interval. The range is 4 to 17. The default is 6. The interval
argument is power of 2, for example: 3=8s, 4=16s, 5=32s, 6=64s, 7=128s,
8=256s, 9=512s.
use-vrfvrf_name
Specifies the VRF name to
synchronize the time with server. The default is mgmt-vrf.
version3 | 4
Specifies the NTP version
supported by the peer. The default is 4.
Modes
Global configuration mode
Usage Guidelines
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 serverip-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 serverip-addresskeykey-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").
Examples
This example associates a configured key ID of
15 to an NTP server on the management VRF.