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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-27-2006, 07:03 PM
|
#1
|
Member
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855
Rep:
|
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?
|
|
|
02-27-2006, 07:28 PM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
02-27-2006, 07:57 PM
|
#3
|
Member
Registered: Nov 2004
Location: Townsville, Australia
Distribution: Fedora Core 5, CentOS 4, RHEL 4
Posts: 855
Original Poster
Rep:
|
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
|
|
|
03-02-2006, 01:24 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 10:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|