Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
3-17
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 3 Configuring the Switch
NTP Configuration
IPv4 address–10.10.10.10
Stratum–2 Server-2
IPv4 address–10.10.10.9
Switch 1 IPv4 address–10.10.10.1
Switch 1 NTP configuration commands
ntp server 10.10.10.10
ntp peer 10.10.10.2
Switch 2 IPv4 address–10.10.10.2
Switch 2 NTP configuration commands
ntp server 10.10.10.9
ntp peer 10.10.10.1
Configuring NTP
You can configure NTP using either IPv4 addresses, IPv6 addresses, or Domain Name Services (DNS)
names. To configure NTP associations, perform this task:
NTP CFS Distribution
You can enable NTP fabric distribution for all Cisco Nexus 5000 Series switches in a fabric using the
Cisco Fabric Services (CFS). When you perform NTP configurations, and distribution is enabled, the
entire server or peer configuration is distributed to all the switches in the fabric.
You automatically acquire a fabric-wide lock when you enter the first configuration command after you
enabled distribution in a switch.The NTP application uses an effective and pending database model to
store or commit the commands based on your configuration. You changes are stored in the pending
database and committed to the effective database.
See the “Information About CFS” section on page 21-1 for more information on the CFS application.
This section includes the following sections:
Enabling NTP Distribution, page 3-18
Command Purpose
Step 1
switch# configure terminal
Enters configuration mode.
Step 2
switch(config)# ntp server
{ip-address | ipv6-address |
dns-name}
Forms an association with a server.
Step 3
switch(config)# ntp peer {ip-address
| ipv6-address | dns-name}
Forms an association with a peer. You can specify
multiple associations.
Step 4
switch(config)# exit
Returns to EXEC mode.
Step 5
switch# copy running-config
startup-config
Saves your configuration changes to NVRAM.
Tip This is one instance where you can save the
configuration as a result of an NTP configuration
change. You can enter this command at any time.
Step 6
switch# show ntp peers
Displays the configured server and peer associations.