PurposeCommand or Action
NTP is enabled or disabled using the [no] ntp
enable command.
Note
(Optional)
Displays the status of the NTP application.
switch(config)# show ntp status
Step 3
(Optional)
Saves the change persistently through reboots and
restarts by copying the running configuration to the
startup configuration.
switch(config)# copy running-config
startup-config
Step 4
This example shows how to disable NTP:
switch# configure terminal
switch(config)# no feature ntp
Configuring the Device as an Authoritative NTP Server
You can configure the device to act as an authoritative NTP server, enabling it to distribute time even when
it is not synchronized to an existing time server.
Procedure
PurposeCommand or Action
Enters global configuration mode.switch# configure terminal
Step 1
Configures the device as an authoritative NTP server.
[no] ntp master [stratum]
Step 2
You can specify a different stratum level from which NTP
clients get their time synchronized. The range is from 1
to 15.
(Optional)
Displays the NTP configuration.
show running-config ntp
Step 3
(Optional)
Saves the change persistently through reboots and restarts
by copying the running configuration to the startup
configuration.
switch(config)# copy
running-config startup-config
Step 4
This example shows how to configure the Cisco NX-OS device as an authoritative NTP server with a different
stratum level:
switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# ntp master 5
Cisco Nexus 5600 Series NX-OS System Management Configuration Guide, Release 7.x
OL-31641-01 223
Configuring NTP
Configuring the Device as an Authoritative NTP Server