DefaultParameters
disabledNTP logging
Configuring NTP
Configuring NTP Server and Peer
You can configure an NTP server and peer.
Before You Begin
Make sure you know the IP address or DNS names of your NTP server and its peers.
If you plan to use CFS to distribute your NTP configuration to other devices, then you should have already
completed the following:
•
Enabled CFS distribution.
•
Enabled CFS for NTP.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Forms an association with a server.switch(config)# [no] ntp server
{ip-address | ipv6-address |
Step 2
Use the key keyword to configure a key to be used while
communicating with the NTP server. The range for the key-id
argument is from 1 to 65535.
dns-name} [key key-id]
[maxpoll max-poll] [minpoll
min-poll] [prefer] [use-vrf
vrf-name]
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.
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 |
Step 3
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
56
Configuring NTP
Configuring NTP