john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Ntp ntpd server client

set the clock to UTC? sudo ln -sf /usr/share/zoneinfo/UTC /etc/localtime

sudo apt-get install ntpd //ensure that port 123 is open

sudo nano /etc/ntp.conf

ntpdate ntp.ubuntu.com

server ntp.nasa.gov iburst server 0.us.pool.ntp.org server 1.us.pool.ntp.org

make your own server use it's own clock - network outages

server 127.127.1.0

fudge 127.127.1.0 stratum 10

Allow LAN to synchronize with this ntp server

restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap restrict 192.168.2.0 mask 255.255.255.0 nomodify notrap

allow localhost access without restrictions

restrict 127.0.0.1

sudo /etc/init.d/ntp restart

tail -f /var/log/syslog

ntpq -c lpeer ntpd -q ntpd -p

//MANUAL SINGLE UPDATE sudo ntpdate ntp2b.mcc.ac.uk ntpdate ipofntpserver

date -s "14 DEC 2009 02:37:00"

Synchronized Network time is very important for logs

apt-get install ntp
/etc/ntp.conf

If you had a cron job

/etc/cron.daily/ntpdate

You may want to use the larger pool of ntpdate pool.ntp.org

/etc/ntp.conf
server pool.ntp.org


  • « If file or directory exists and case statements string empty
  • command line arguments argv parameters parsing argparse »

Published

Sep 30, 2014

Category

linux

~135 words

Tags

  • client 14
  • linux 249
  • ntp 1
  • ntpd 1
  • server 66