LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-24-2006, 12:46 PM   #1
slackamp
Member
 
Registered: Dec 2005
Distribution: slackware-current
Posts: 86

Rep: Reputation: 16
NTPd


hello everyone. i am having a bit of problem with slackware 11 ntpd. it will not sync with my time server.

NTP server on my IPCOP: 192.168.1.1

# cat /etc/ntp.conf

restrict default nomodify notrap noquery
restrict 127.0.0.1

server 192.168.1.1

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10

driftfile /etc/ntp/drift
broadcastdelay 0.008

keys /etc/ntp/ntp.keys

# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
192.168.1.1 LOCAL(0) 11 u 291 1024 377 4.747 12173.3 38.751
*LOCAL(0) .LOCL. 10 l 46 64 377 0.000 0.000 0.001


so for some reason it is only sync'ng on my local clock and not my time server. i also have a centos box with the same ntp config that is sync'ng to my ipcop.

i can run ntpdate manually and it will sync with ipcop.

my log shows.

# gunzip -c /var/log/messages.1.gz | grep -i ntp
Dec 17 23:58:42 slack ntpd[4171]: ntpd 4.2.2p4@1.1585-o Mon Nov 20 14:43:48 UTC 2006 (1)
Dec 17 23:58:42 slack ntpd[4172]: precision = 1.000 usec
Dec 17 23:58:42 slack ntpd[4172]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Dec 17 23:58:42 slack ntpd[4172]: Listening on interface lo, 127.0.0.1#123 Enabled
Dec 17 23:58:42 slack ntpd[4172]: Listening on interface eth0, 192.168.1.5#123 Enabled
Dec 17 23:58:42 slack ntpd[4172]: kernel time sync status 0040
Dec 17 23:58:42 slack ntpd[4172]: frequency initialized 73.568 PPM from /etc/ntp/drift
Dec 18 00:01:56 slack ntpd[4172]: synchronized to LOCAL(0), stratum 10
Dec 18 00:01:56 slack ntpd[4172]: kernel time sync enabled 0001
Dec 20 20:32:31 slack ntpd[2347]: ntpd 4.2.2p4@1.1585-o Mon Nov 20 14:43:48 UTC 2006 (1)
Dec 20 20:32:31 slack ntpd[2348]: precision = 1.000 usec
Dec 20 20:32:31 slack ntpd[2348]: Listening on interface wildcard, 0.0.0.0#123 Disabled
Dec 20 20:32:31 slack ntpd[2348]: Listening on interface lo, 127.0.0.1#123 Enabled
Dec 20 20:32:31 slack ntpd[2348]: Listening on interface eth0, 192.168.1.5#123 Enabled
Dec 20 20:32:31 slack ntpd[2348]: kernel time sync status 0040
Dec 20 20:32:31 slack ntpd[2348]: frequency initialized 73.568 PPM from /etc/ntp/drift
Dec 20 20:35:46 slack ntpd[2348]: synchronized to LOCAL(0), stratum 10
Dec 20 20:35:46 slack ntpd[2348]: kernel time sync enabled 0001
 
Old 12-26-2006, 02:39 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Try the "prefer" option:
Code:
server 192.168.1.1 prefer
After NTPD is restarted, your client will probably be sycronized first with LOCAL(0) then with the prefered server.
 
  


Reply



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
ntpd jayhel Slackware 2 02-19-2005 10:12 AM
ntpd seitan Linux - Software 1 11-29-2004 05:30 AM
ntpd jqcaducifer Linux - General 0 08-21-2003 11:09 PM
ntpd in RH 7.3 melissad Linux - Networking 4 04-28-2003 12:34 PM
ntpd susx Linux - Newbie 3 08-28-2001 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:47 AM.

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