PurposeCommand or Action
Use the prefer keyword to make this the
preferred NTP server for the device.
Use the use-vrf keyword to configure the NTP
server to communicate over the specified VRF.
The vrf-name argument can be default,
management, or any case-sensitive
alphanumeric string up to 32 characters.
If you configure a key to be used
while communicating with the NTP
server, make sure that the key exists
as a trusted key on the device.
Note
Forms an association with a peer. You can
specify multiple peer associations.
switch(config)# [no] ntp peer {ip-address |
ipv6-address | dns-name} [key key-id] [maxpoll
Step 3
max-poll] [minpoll min-poll] [prefer] [use-vrf
vrf-name]
Use the key keyword to configure a key to be
used while communicating with the NTP peer.
The range for the key-id argument is from 1 to
65535.
Use the maxpoll and minpoll keywords to
configure the maximum and minimum intervals
in which to poll a peer. The range for the
max-poll and min-poll arguments is from 4 to
16 seconds, and the default values are 6 and 4,
respectively.
Use the prefer keyword to make this the
preferred NTP server for the device.
Use the use-vrf keyword to configure the NTP
server to communicate over the specified VRF.
The vrf-name argument can be default,
management, or any case-sensitive
alphanumeric string up to 32 characters.
Displays the configured server and peers.(Optional) switch(config)# show ntp peers
Step 4
A domain name is resolved only
when you have a DNS server
configured.
Note
Saves the change persistently through reboots
and restarts by copying the running
configuration to the startup configuration.
(Optional) switch(config)# copy
running-config startup-config
Step 5
Example
This example shows how to configure an NTP server and peer:
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
25
Configuring NTP
Configuring NTP Server and Peer