Configuration Examples For Ntp - Cisco Nexus 3548 series Configuration Manual

Nx-os system management, release 7.x
Hide thumbs Also See for Nexus 3548 series:
Table of Contents

Advertisement

Configuring NTP
Step 9
Step 10
Step 11
Step 12
Step 13
Step 14
Step 15
Step 16

Configuration Examples for NTP

This example shows how to configure an NTP server and peer, enable NTP authentication, enable NTP
logging, and then save the configuration in startup so that it is saved across reboots and restarts:
switch# config terminal
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# ntp server 192.0.2.105 key 42
switch(config)# ntp peer 2001:0db8::4101
switch(config)# show ntp peers
--------------------------------------------------
--------------------------------------------------
switch(config)# ntp authentication-key 42 md5 aNiceKey
switch(config)# show ntp authentication-keys
-----------------------------
Auth key
-----------------------------
switch(config)# ntp trusted-key 42
switch(config)# show ntp trusted-keys
Trusted Keys:
42
switch(config)# ntp authenticate
switch(config)# show ntp authentication-status
Authentication enabled.
switch(config)# ntp logging
switch(config)# show ntp logging
NTP logging enabled.
switch(config)# copy running-config startup-config
[########################################] 100%
switch(config)#
This example shows an NTP access group configuration with the following restrictions:
Command or Action
show ntp rts-update
show ntp session status
show ntp source
show ntp source-interface
show ntp statistics {io | local | memory | peer
{ipaddr {ipv4-addr | ipv6-addr} | name
peer-name}}
show ntp status
show ntp trusted-keys
show running-config ntp
Peer IP Address
2001:db8::4101
Peer (configured)
192.0.2.105
Server (configured)
MD5 String
42
aNicekey
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
Purpose
Displays the RTS update status.
Displays the NTP CFS distribution session
information.
Displays the configured NTP source IP
address.
Displays the configured NTP source interface.
Displays the NTP statistics.
Displays the NTP CFS distribution status.
Displays the configured NTP trusted keys.
Displays NTP information.
Serv/Peer
Configuration Examples for NTP
33

Advertisement

Table of Contents
loading

Table of Contents