MandrivaUsers.org : Creating your own ntp server - MandrivaUsers.org

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating your own ntp server

#1 User is offline   ianw1974 

  • Platinum
  • View blog
  • Group: Admin
  • Posts: 13,536
  • Joined: 09-March 05

Posted 03 August 2006 - 06:16 AM

I managed to figure this out the other week, so decided to share it with you. In my example, I have my NTP server using the ip address of 172.20.12.230.

NTP Server config (machine using 172.20.12.230):

server  127.127.1.0	 # local clock
fudge   127.127.1.0 stratum 10

server pool.ntp.org

#the next entry sets this as the server and doesn't allow any modifications
restrict 172.20.12.230 mask 255.255.0.0 nomodify nopeer notrap

#the next line is required to ensure correct functionality
restrict 127.0.0.1 nomodify

# Drift file.  Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /etc/ntp/drift
multicastclient				 # listen on default 224.0.1.1
broadcastdelay  0.008


Desktop/Server config for machines to sync with your newly created ntp server:

server  127.127.1.0	 # local clock
fudge   127.127.1.0 stratum 10

#this is the server you want to synchronise with.  i'm using the hostname
#instead of the ip address of my machine - ensure /etc/hosts resolves it!
server elan

# Drift file.  Put this in a directory which the daemon can write to.
# No symbolic links allowed, either, since the daemon updates the file
# by creating a temporary in the same directory and then rename()'ing
# it to the file.
driftfile /etc/ntp/drift
multicastclient				 # listen on default 224.0.1.1
broadcastdelay  0.008


the above config shows the hostname of my machine, called "elan". So, make sure your machine can ping the hostname, otherwise if not, use the ip address, or edit the /etc/hosts file so that it can ping the hostname.

And now you should have a fully functional ntp server on your network, and all your clients can sync with it. However, please note that it might take a few hours before the clients/servers that you have will start to synchronise. This is normal, because the stratum level is too high and will take a bit before it becomes usable as a ntp server.
Ian Walker
Juniper Networks Certified Internet Associate (JNCIA-FWV, JNCIA-IDP and JNCIA-SSL)
Aventail Certified Professional (ACP)
Certified Trend Micro Engineer

Linux Systems Limited is partnered with Red Hat Linux.

Posted Image2 x systems installed with Mandriva 2010 x86_64 (1 @ Home, 1 @ Work)

Posted Image My Linux Solutions | My Business Website
0

#2 User is offline   gordman 

  • New Here
  • Group: New here
  • Posts: 4
  • Joined: 18-January 08

Posted 18 January 2008 - 02:46 PM

Thank you, I really appreciate it.
0

#3 User is offline   ianw1974 

  • Platinum
  • View blog
  • Group: Admin
  • Posts: 13,536
  • Joined: 09-March 05

Posted 18 January 2008 - 06:13 PM

No problem :thumbs:
Ian Walker
Juniper Networks Certified Internet Associate (JNCIA-FWV, JNCIA-IDP and JNCIA-SSL)
Aventail Certified Professional (ACP)
Certified Trend Micro Engineer

Linux Systems Limited is partnered with Red Hat Linux.

Posted Image2 x systems installed with Mandriva 2010 x86_64 (1 @ Home, 1 @ Work)

Posted Image My Linux Solutions | My Business Website
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users