Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NTP-Server problem.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
chrism
Guru
Guru


Joined: 15 Jul 2004
Posts: 526

PostPosted: Thu Feb 24, 2005 12:12 am    Post subject: NTP-Server problem. Reply with quote

Hi,

I emerged NTP on my router. I run etc/init.d/ntpd start. When I look at all started demons with rc-status it tells me that NTPD started OK.

When I try to run /etc/init.d/ntp-client start on the client I get the following error messages:
Code:
 # /etc/init.d/ntp-client start
 * Setting clock via the NTP client 'ntpdate'...
host found : 192.168.1.1
24 Feb 01:10:41 ntpdate[28196]: no server suitable for synchronization found
 * Failed to set clock                                                    [ !! ]

That's all. Ohhh before I forget, I changed the 'pool.ntp.org' server in the NTPCLIENT_OPTS variable to '192.168.1.1' which is my router, and which obviously can be found.

Any Ideas?

Thanks,

Chris
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Thu Feb 24, 2005 2:42 am    Post subject: Reply with quote

I had that problem too, but with this config it works ok:
Code:

charlie mayday # cat /etc/conf.d/ntp-client
NTPCLIENT_CMD="ntpdate"
NTPCLIENT_OPTS="-b pool.ntp.org"
NTPCLIENT_TIMEOUT=5

_________________
gentoo.ro
Back to top
View user's profile Send private message
nbensa
l33t
l33t


Joined: 10 Jul 2002
Posts: 799
Location: Buenos Aires, Argentina

PostPosted: Thu Feb 24, 2005 3:28 am    Post subject: Reply with quote

RTFM :D

If you want NTPd to sync to your box's hardware clock, you need to tell ntpd which driver to use. You do this by using the following server:
Code:
server 127.127.1.1


NTP's manual is a bit cryptic, so you'll need to be a little patient :?
Back to top
View user's profile Send private message
transient
l33t
l33t


Joined: 13 Jan 2005
Posts: 759

PostPosted: Thu Feb 24, 2005 4:18 am    Post subject: Reply with quote

Bit of misunderstanding going on here. You need to allow the router to update off an ntp server as well, as its not a stratum1 or stratum2 server (and indeed shouldnt be).
Configure the ntp daemon on your router by editing the /etc/ntpd.conf file, and specify what timeserver you want the daemon to sync with. You will also need to edit the restrict options to enable other computers on your local network to sync off the router, as the default is to not allow other computers to sync off the server.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum