Hello all,
Am un server de timp in retea dupa care se sincronizeaza mai multe linuxuri si
windowsuri. Cu statiile pe care ruleaza rh7.2 sau windows vad ca nu sunt
probleme. Cu clientii pe care ruleaza RH9.0 sau centos4 vad ca-mi da:
# /etc/rc.d/init.d/ntpd start
ntpd: Synchronizing with time server: [FAILED]
Starting ntpd: [ OK ]
tail -f /var/log/messages|grep ntp
Nov 15 15:08:34 ltm ntpdate[10857]: no server suitable for synchronization
foundNov 15 15:08:34 ltm ntpd: failed
Nov 15 15:08:34 ltm ntpd[10862]: ntpd [EMAIL PROTECTED] Mon Feb 21 17:54:52 GMT
2005 (1)
Nov 15 15:08:34 ltm ntpd[10862]: precision = 1.000 usec
Nov 15 15:08:34 ltm ntpd[10862]: Listening on interface wildcard, 0.0.0.0#123
Nov 15 15:08:34 ltm ntpd[10862]: Listening on interface wildcard, ::#123
Nov 15 15:08:34 ltm ntpd[10862]: Listening on interface lo, 127.0.0.1#123
Nov 15 15:08:34 ltm ntpd[10862]: Listening on interface eth0, 10.0.0.19#123
Nov 15 15:08:34 ltm ntpd[10862]: kernel time sync status 0040
Nov 15 15:08:34 ltm ntpd: ntpd startup succeeded
Nov 15 15:08:34 ltm ntpd[10862]: frequency initialized 0.000 PPM
from /var/lib/ntp/drift
# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
LOCAL(0) LOCAL(0) 10 l 16 64 1 0.000 0.000 0.001
10.0.0.2 .INIT. 16 u - 64 0 0.000 0.000 4000.00
[EMAIL PROTECTED] ~]#
Iata mai jos si fisierul de configurare /etc/ntp.conf de pe o masina linux
(centos4) care este client ntp si se updateaza dupa 10.0.0.2:
# cat /etc/ntp.conf
restrict default nomodify notrap noquery
restrict 127.0.0.1
server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
keys /etc/ntp/keys
server 10.0.0.2
restrict 10.0.0.2 mask 255.255.255.255 nomodify notrap noquery
Iata si fisierul de configurare de pe 10.0.0.2 (server de timp pentru lan):
# cat /etc/ntp.conf
server ntp1.fau.de
restrict default nomodify notrap noquery
restrict 10.0.0.0 mask 255.255.0.0 notrust nomodify notrap
restrict 127.0.0.1
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
keys /etc/ntp/keys
Ce-mi lipseste?
Alex
PS: exclus probleme de firewall.
_______________________________________________
RLUG mailing list
[email protected]
http://lists.lug.ro/mailman/listinfo/rlug