How to Configure Cisco NTP | Server & Client

In this tutorial, we will look at how to configure a Cisco router as the NTP server and a switch as the client.


au31yfSM3Sdk9Dqf0w1Chv3oLTZ6QpxzqfgVepEvoqItvpEvzDGmr9Xq0-QHcC2_CIleztGADeT_jLlpNpoeGgbtWvRWigDc1ivbb6fyV4hvlRf83Qs0ZNfFbsKkHGI3k7PdGj3a

Router Master / Server configuration

Code:
Router(config)#ntp master
Router(config)#ntp source loopback 0
!
!!reference!!
!
Router(config)#ntp ?
  master              Act as NTP master clock
  source              Configure interface for source address

Switch client configuration

Switch(config)#ntp server 1.1.1.1 source loopback 0
!
!!verification!!
!
Switch#show ntp status
Clock is synchronized, stratum 9, reference is 1.1.1.1
nominal freq is 1000.0003 Hz, actual freq is 1000.0003 Hz, precision is 2**15
ntp uptime is 94700 (1/100 of seconds), resolution is 1000
reference time is DF2F6BCD.AFB76734 (06:35:57.686 UTC Tue Aug 28 2018)
clock offset is 26.3407 msec, root delay is 2.92 msec
root dispersion is 7965.40 msec, peer dispersion is 7937.53 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000000000 s/s
system poll interval is 64, last update was 80 sec ago.
!
Switch#show ntp associations

  address         ref clock       st   when   poll reach  delay  offset   disp
*~1.1.1.1         127.127.1.1      8     28     64     1  2.856 1760.17 3938.0
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured