NTP Server config (machine using 172.20.12.230):
CODE
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
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:
CODE
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
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.