22.05.2017 Views

nx.os.and.cisco.nexus.switching.2nd.edition.1587143046

Nexus Switching 2nd Edition

Nexus Switching 2nd Edition

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

where NTP runs in multiple VDCs, the network administrator can select which VDC owns<br />

the system clock on the supervisor. This VDC then updates the system clock <strong>and</strong><br />

synchronizes time on all linecards in the chassis. Example 7-54 illustrates specifying a<br />

specific VDC that will control the system clock.<br />

Example 7-54. Configuration of a Specific VDC to Own the System Clock<br />

Click here to view code image<br />

N7K-2# config<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

N7K-2(config)# clock protocol ntp vdc 1<br />

N7K-2(config)# end<br />

N7K-2#<br />

A typical NTP configuration in NX-OS consists of specifying the IP address of the NTP<br />

servers <strong>and</strong> the source interface the device will use for the source IP of all NTP packets. If<br />

no source interface is specified, the device uses the IP address of the interface that is used to<br />

egress toward the NTP server. Example 7-55 illustrates a typical NTP configuration.<br />

Example 7-55. NTP Configuration in NX-OS<br />

Click here to view code image<br />

N7K-2# config<br />

Enter configuration comm<strong>and</strong>s, one per line. End with<br />

CNTL/Z.<br />

N7K-2(config)# ntp server 10.89.64.1 use-vrf management<br />

N7K-2(config)# ntp source-interface mgmt0<br />

N7K-2(config)# end<br />

N7K-2# show ntp peer-status<br />

Total peers : 1<br />

* - selected for sync, + - peer mode(active),<br />

- - peer mode(passive), = - polled in client mode<br />

remote local st poll re<br />

delay vrf<br />

----------------------------------------------------------<br />

---------------------<br />

*10.89.64.1 172.26.251.21 2 64 37<br />

management<br />

N7K-2#<br />

Precision Time Protocol

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!