LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2006, 07:03 PM   #1
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Rep: Reputation: 30
Ntp


hi there,

i'm trying to get a NTP server working on RHEL4, this is my /etc/ntp.conf file

restrict default ignore
restrict 66.187.233.4 mask 255.255.255.255 nomodify notrap noquery
restrict 127.0.0.1
restrict 192.168.0.0 mask 255.255.254.0
restrict 192.168.100.0 mask 255.255.255.0
server 66.187.233.4
server clock2.redhat.com
fudge 127.127.1.0 stratum 10
logfile /var/log/ntp
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
keys /etc/ntp/keys

when i started it, the service seams to start without issue but then i go to my test machine and type in

ntpdate 192.168.0.254

and i get this

[root@fedora ~]# ntpdate 192.168.0.254
28 Feb 11:03:17 ntpdate[31721]: adjust time server 192.168.0.254 offset 0.000073 sec


can someone tell me what i'm doing wrong?
 
Old 02-27-2006, 07:28 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
What does the logfile say? BTW, I don't see an error, it looks like it's successfully setting the time and showing you the offset it corrected, but I assume this is not what's happening.

Cool
 
Old 02-27-2006, 07:57 PM   #3
paul_mat
Member
 
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855

Original Poster
Rep: Reputation: 30
this is the log file

24 Feb 16:27:36 ntpd[28844]: frequency initialized -71.792 PPM from /var/lib/ntp/drift
24 Feb 16:27:52 ntpd[28844]: ntpd exiting on signal 15
24 Feb 16:27:52 ntpd[28927]: frequency initialized -71.792 PPM from /var/lib/ntp/drift
24 Feb 16:28:12 ntpd[28927]: ntpd exiting on signal 15
24 Feb 16:28:12 ntpd[29034]: frequency initialized -71.792 PPM from /var/lib/ntp/drift
24 Feb 16:32:31 ntpd[29034]: synchronized to 66.187.233.4, stratum 1
24 Feb 16:32:31 ntpd[29034]: kernel time sync disabled 0041
24 Feb 16:37:57 ntpd[29034]: kernel time sync enabled 0001
25 Feb 13:27:14 ntpd[29034]: time reset -0.168676 s
25 Feb 13:32:36 ntpd[29034]: synchronized to 66.187.233.4, stratum 1
25 Feb 13:32:36 ntpd[29034]: time reset +0.208781 s
25 Feb 13:39:03 ntpd[29034]: synchronized to 66.187.233.4, stratum 1
27 Feb 19:42:40 ntpd[29034]: time reset +0.141106 s
27 Feb 19:48:03 ntpd[29034]: synchronized to 66.187.233.4, stratum 1
27 Feb 19:48:03 ntpd[29034]: time reset -0.213897 s
27 Feb 19:55:33 ntpd[29034]: synchronized to 66.187.233.4, stratum 1
28 Feb 11:55:46 ntpd[29034]: ntpd exiting on signal 15
28 Feb 11:55:47 ntpd[10733]: frequency initialized -71.390 PPM from /var/lib/ntp/drift

and your right i posted the wrong information before, this is the command output

[root@fedora /]# ntpdate 192.168.0.254
28 Feb 11:57:50 ntpdate[31763]: no server suitable for synchronization found
 
Old 03-02-2006, 01:24 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Try commenting out your fudge line (it's givnig your loopback address a higher priority than the external NTP servers) and see if there is any change (after restarting the NTP server).

Cool
 
  


Reply


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 darkkan Debian 3 09-09-2005 11:11 AM
help with NTP stevenhasty Slackware 6 02-16-2005 11:04 AM
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
NTP Help MaverickApollo Linux - Software 0 10-28-2003 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:14 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration