LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-21-2014, 03:14 PM   #1
rh102801
LQ Newbie
 
Registered: May 2014
Posts: 2

Rep: Reputation: Disabled
Issues setting up NTP


Hi there, I am Linux noob trying to setup NTP daemon to use on a kiosk type workstation so that I can synch it to our internal time server. I have been following the following link for setting it up http://docs.slackware.com/howtos:network_services:ntp
and everything went ok but when I try to see what servers I am synched to I am getting a timeout message and am not sure why it is not showing me any servers I am connecting to.
Here is the error I see:

root@porteus:/# ntpq -pn
127.0.0.1: timed out, nothing received
***Request timed out

ntpdate seems to work fine and it updates the clock as expected:
root@porteus:~# ntpdate mytime.its.com
21 May 12:36:14 ntpdate[2511]: adjust time server 192.168.1.12 offset -0.045813 sec

Here is a copy of my ntp.conf file

server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
server mytime.its.com
server 192.168.1.12
driftfile /etc/ntp/drift
logfile /var/log/ntp.log
restrict default noquery nomodify
restrict 127.0.0.1

I had opened port UDP 123 in the firewall and after a while I just disabled it until I can be sure it is not causing the problem.
I am mirroring the port where this workstation is plugged in and I can see NTP traffic going out to the server every so often and I see responses from the server so it appears to me like they are communicating however, I expected to see the output of to show me that I am synched with a server instead of a request timeout.

Here are the contents of /var/log/ntp.log

root@porteus:/# cat /var/log/ntp.log
21 May 12:12:05 ntpd[2034]: ntpd exiting on signal 1
21 May 12:20:04 ntpd[2058]: Deleting interface #1 eth0, 192.168.1.69#123, interf ace stats: received=14, sent=14, dropped=1, active_time=460 secs
21 May 12:20:04 ntpd[2058]: 192.168.1.12 interface 192.168.1.69 -> (none)
21 May 12:20:04 ntpd[2058]: 192.168.10.12 interface 192.168.1.69 -> (none)
21 May 12:20:04 ntpd[2058]: peers refreshed
21 May 12:20:21 ntpd[2058]: Listen normally on 2 eth0 192.168.1.69 UDP 123
21 May 12:20:21 ntpd[2058]: peers refreshed
21 May 12:20:21 ntpd[2058]: new interface(s) found: waking up resolver
21 May 12:20:30 ntpd[2058]: Deleting interface #2 eth0, 192.168.1.69#123, interf ace stats: received=2, sent=2, dropped=0, active_time=9 secs
21 May 12:20:30 ntpd[2058]: 192.168.1.12 interface 192.168.1.69 -> (none)
21 May 12:20:30 ntpd[2058]: 192.168.10.12 interface 192.168.1.69 -> (none)
21 May 12:20:30 ntpd[2058]: peers refreshed
21 May 12:20:47 ntpd[2058]: Listen normally on 3 eth0 192.168.1.69 UDP 123
21 May 12:20:47 ntpd[2058]: peers refreshed
21 May 12:20:47 ntpd[2058]: new interface(s) found: waking up resolver
21 May 12:35:45 ntpd[2058]: ntpd exiting on signal 1



Does anyone have any ideas?

Last edited by rh102801; 05-21-2014 at 03:52 PM. Reason: Additional information
 
Old 05-21-2014, 09:10 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
root@porteus:~# ntpdate mytime.its.com
21 May 12:36:14 ntpdate[2511]: adjust time server 192.168.1.12 offset -0.045813 sec
So it's configured and running if you have a good address for the time server.
So the question becomes, is their a reachable network time server on 192.168.1.69 ?
Can you ping that machine normally? ping -c3 192.168.1.69
 
Old 05-22-2014, 02:05 PM   #3
rh102801
LQ Newbie
 
Registered: May 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for the reply dijetlo, 192.168.1.69 is workstation kiosk that I am trying to sync to the time server.
Yes from the kiosk I am able to ping the time server (mytime.its.com) and the fact that when running ntpdate to that server I get the clock adjusted, makes me think that it can talk to the server and take it's time but again for ntpdate, it does not appear to connect to it when using the ntp daemon.

I hope this makes sense.

Thanks
 
Old 05-22-2014, 02:46 PM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Is your server name getting resolved to IP? Is it in your /etc/hosts file?

I'm looking at my ntp.conf and it has a line about connecting to NTP servers on a local subnet...
Code:
#Uncomment to use a multicast server on the local subnet
multicastclient 224.0.1.1
listen on default 224.0.1.1
It's seems like the clients for private/local/internal time servers may be getting multicast over the lan.

Edit: No problem, I'm happy for the opportunity to learn more about it, I should be thanking you,

Last edited by dijetlo; 05-22-2014 at 03:07 PM.
 
  


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 Issues zaeem Linux - Server 6 05-17-2011 09:51 AM
Setting up an NTP server tqz Linux - Server 1 04-14-2010 05:23 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
NTP Issues piercey Linux - Server 2 01-13-2009 12:11 PM
NTP issues? Blinker_Fluid Solaris / OpenSolaris 8 05-30-2008 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration