Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-25-2010, 01:49 PM   #1
Registered: Oct 2009
Posts: 75

Rep: Reputation: 0
Debian/Freebsd NTP Configuration Problems

Hello All,

I do not understand why my setup does not work. I have a freebsd7.2 server which is running ntp.
I have a debian client running ntp client. I cannot seem to sync my client. Maybe I am missing something really simple. Currently my server (, and config file is:

server prefer
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
restrict mask nomodify notrap noquery
restrict mask nomodify notrap noquery
restrict mask nomodify notrap noquery
restrict mask nomodify notrap noquery
restrict mask
restrict mask
restrict mask
restrict mask nomodify notrap
restrict mask nomodify notrap

ntpq -p:
remote refid st t when poll reach delay offset jitter
============================================================================== .INIT. 16 u - 64 0 0.000 0.000 0.000 .INIT. 16 u - 64 0 0.000 0.000 0.000
alice.ziaspace. .INIT. 16 u - 64 0 0.000 0.000 0.000
ntp.undeadarmy. .INIT. 16 u - 64 0 0.000 0.000 0.000 .BCST. 16 u - 64 0 0.000 0.000 0.001

My client which is
driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example

# maps to about 1000 low-stratum NTP servers. Your server will
# pick a different set every time it starts up. Please consider joining the
# pool: <>
#server iburst dynamic

# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <>
# might also be helpful.
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# up blocking replies from your own upstream servers.

# By default, exchange time with everybody, but don't allow configuration.
#restrict -4 default kod notrap nomodify nopeer noquery
#restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict ::1

# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict mask notrust

# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)

# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines. Please do this only if you trust everybody on the network!
disable auth

logfile /var/log/ntp.log

ntpq -p:
remote refid st t when poll reach delay offset jitter
============================================================================== .INIT. 16 u - 64 0 0.000 0.000 0.000 .INIT. 16 u 47 64 0 0.000 0.000 0.000

The times will not sync, I am uncertain what I need to do. I understand my server is not sync which is not that important. I just need my client to be in sync with my server if that makes sense. Right now my client is about 6 seconds too fast and will not sync up when I try
ntpdate -u
Any ideas?

Thanks a lot,

Old 05-25-2010, 04:09 PM   #2
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 164Reputation: 164
Try just running 'ntpdate-debian' (no args) and see if it syncs.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
NTP configuration edomingox Linux - General 8 08-25-2009 02:08 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 08:35 PM
FreeBSD 6.0 X server configuration problems Nylex *BSD 7 01-22-2006 09:09 PM
Configuration of NTP srikz SUSE / openSUSE 1 01-18-2005 03:04 PM
Ntp Server Configuration rodel Linux - Software 1 10-20-2003 04:10 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration