Hi,
It also didnot work for me out. So let me explain a bit about my netwrok topology may be that time it would be clear.
In my topology i have 1 server and 2 client computers preinstalled with Red hat 9.0. I want my client timers be sychnonized with server.
So for that reason i run this commands on server computer (i.e my serve is cahost).
[root@cahost root]# chkconfig ntpd on
[root@cahost root]# service ntpd start
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
[root@cahost root]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
cahost 0.0.0.0 16 l - 1024 0 0.000 0.000 4000.00
root@cahost root]# vi /etc/ntp.config
#uncommented lines in ntp.config
server 127.0.0.1
driftfile /etc/ntp/drift
on my client machines
[root@hostb root]# chkconfig ntpd on
[root@hostb root]# service ntpd start
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
[root@hostb root]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
192.168.0.4 0.0.0.0 16 u 96 1024 0 0.000 0.000 4000.00
so what is the problem i cannot understand.
my server ip is:192.168.0.4
my client 1:192.168.0.2
my client 2:192.168.0.3
Why it is not synchronized ?
thank you ...
Quote:
Originally Posted by bulliver
Ok, wait. I re-read your post again...
You are starting the time server on the client machine, is that really what you want?
If you just want to sync your client to the server then you just have to do:
Code:
# ntpdate -b <timeserver-ip>
This is usually set up as a cron task, which you can run as often as you feel the need for (every hour is common...). Some distros (such as gentoo which I am using here) have an init script which basically sets this up for you. see if you have a service like 'ntp-client' or somesuch.
If I am again misunderstanding you and you really want to start the a time server then just do it like so:
I was suggesting this because generally service scripts will send errors and output to /dev/null, making it difficult to debug.
|