Send comments to nexus3k-docfeedback@cisco.com
-SM-127
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
ntp
ntp
To configure the Network Time Protocol (NTP) peers and servers for the switch, use the ntp command.
To remove configured peers and servers, use the no form of this command.
ntp {peer hostname | server hostname} [prefer] [use-vrf vrf-name]
no ntp {peer hostname | server hostname}
Syntax Description
Command Default None
Command Modes Global configuration mode
Command History
Usage Guidelines You can specify multiple peer associations.
Examples This example shows how to form a server association with a server:
switch# configure terminal
switch(config)# ntp server ntp.cisco.com
switch(config)#
This example shows how to form a peer association with a peer:
switch# configure terminal
switch(config)# ntp peer 192.168.10.0
switch(config)#
This example shows how to delete an association with a peer:
switch# configure terminal
switch(config)# no ntp peer 192.168.10.0
switch(config)#
peer hostname Specifies the hostname or IP address of an NTP peer.
server hostname Specifies the hostname or IP address of the NTP server.
prefer (Optional) Specifies this peer/server as the preferred peer/server.
use-vrf vrf-name (Optional) Specifies the virtual routing and forwarding (VRF) used to reach
this peer/server.
Release Modification
5.0(3)U1(1) This command was introduced.