View previous topic :: View next topic |
Author |
Message |
chrism Guru
Joined: 15 Jul 2004 Posts: 526
|
Posted: Thu Feb 24, 2005 12:12 am Post subject: NTP-Server problem. |
|
|
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 |
|
|
mayday147 l33t
Joined: 22 Mar 2004 Posts: 825 Location: Bucharest, Romania
|
Posted: Thu Feb 24, 2005 2:42 am Post subject: |
|
|
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 |
|
|
nbensa l33t
Joined: 10 Jul 2002 Posts: 799 Location: Buenos Aires, Argentina
|
Posted: Thu Feb 24, 2005 3:28 am Post subject: |
|
|
RTFM
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:
NTP's manual is a bit cryptic, so you'll need to be a little patient |
|
Back to top |
|
|
transient l33t
Joined: 13 Jan 2005 Posts: 759
|
Posted: Thu Feb 24, 2005 4:18 am Post subject: |
|
|
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 |
|
|
|