Skip to content

Rage Against the Shell

Linux tips and other things…

  • Home
  • Contact
  • Privacy Policy

Month: December 2015

Configure NTP on cisco 8xx

Posted on December 1, 2015 - September 18, 2016 by Mr. Reboot

Enter in config mode:

router#configure t

First configure a DNS server to resolve ntp servers name:

router(config)#ip name-server 8.8.8.8

Now set a primary ntp server:

router(config)#ntp server 0.europe.pool.ntp.org

And also a secondary:

router(config)#ntp server 1.europe.pool.ntp.org

Finally configure the time zone, here CET + 1:

router(config)#clock timezone CET 1

Exit from configuration mode and test the status, usually is necessary to wait for a few minutes to get a successful synchronization. Output can be similar to this:

router# show ntp status

Clock is synchronized, stratum 3, reference is 178.16.23.50
nominal freq is 249.9684 Hz, actual freq is 249.9665 Hz, precision is 2**16
reference time is DA07DA35.B8AE53C5 (15:40:20.721 CET Tue Ago 4 2015)
clock offset is -0.0009 msec, root delay is 0.11 msec
root dispersion is 0.08 msec, peer dispersion is 0.01 msec
loopfilter state is 'CTRL' (Normal Controlled Loop), drift is 0.000007607 s/s
system poll interval is 1024, last update was 567 sec ago.

And test the association server status too:

router# show ntp associations

address         ref clock       st   when   poll reach  delay  offset   disp
*~178.16.23.50   75.12.230.181    2    907   1024   377 86.323  -0.927 13.845
~37.247.53.178   129.242.4.241    2    904   1024   377 86.323  -0.927 14.845
* sys.peer, # selected, + candidate, - outlyer, x falseticker, ~ configured
Posted in CiscoLeave a comment

Search

Calendar

December 2015
M T W T F S S
 123456
78910111213
14151617181920
21222324252627
28293031  
« Nov   Jan »

Categories

  • Apache
  • Cisco
  • Command line
  • Distros
  • Dovecot
  • File systems
  • Gadgets
  • GlusterFS
  • MySQL
  • Nginx
  • NTP
  • Opendkim
  • Pacemaker + Corosync
  • Postfix
  • Raspberrypi
  • SSH
  • SSL
  • Varnish

RSS RSS

  • Using qrencode January 16, 2022
  • Compile varnish module vmod_vsthrottle April 22, 2020
  • SSH vpn with sshuttle April 9, 2020
  • Disable swap in systemd December 16, 2019
  • Getting the parent process pid October 12, 2018
Proudly powered by WordPress | Theme: micro, developed by DevriX.