[Risolto] Configurazione NTP

Ciao a tutti,

avrei un problema con la configurazione del demone ntp.

Nonostante la modifica del ntp.conf(incollo il cat),e il restart del servizio, con il comando date vedo ancora data e ora fuori sincronia.
Dove devo correggere il file???

cat /etc/ntp.conf

For more information about this file, see the man pages

ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

driftfile /var/lib/ntp/drift

Permit time synchronization with our time source, but do not

permit the source to query or modify the service on this system.

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

Permit all access over the loopback interface. This could

be tightened as well, but to do so would effect some of

the administrative functions.

restrict 127.0.0.1
restrict -6 ::1

Hosts on local network are less restricted.

#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

Use public servers from the pool.ntp.org project.

Please consider joining the pool (http://www.pool.ntp.org/join.html).

#server 0.fedora.pool.ntp.org
#server 1.fedora.pool.ntp.org
#server 2.fedora.pool.ntp.org
server time.ien.it

#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

Undisciplined Local Clock. This is a fake driver intended for backup

and when no outside source of synchronized time is available.

#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

Enable public key cryptography.

#crypto

includefile /etc/ntp/crypto/pw

Key file containing the keys and key identifiers used when operating

with symmetric key cryptography.

keys /etc/ntp/keys

Specify the key identifiers which are trusted.

#trustedkey 4 8 42

Specify the key identifier to use with the ntpdc utility.

#requestkey 8

Specify the key identifier to use with the ntpq utility.

#controlkey 8

Enable writing of statistics records.

#statistics clockstats cryptostats loopstats peerstats

Ti posto alcuni dei passaggi che ho eseguito tempo fà, vedi se ti sono utili:

[quote]

gedit /etc/ntp.conf

metti l’indirizzo ip dell’ntp server ( centro galileo):

server 193.204.114.232

poi

gedit /etc/ntp/step-tickets

cancella tutto e metti solo:

193.204.114.232

poi:

ntpdate -q 193.204.114.232

verifica se è a posto.
Se funziona dai:

*# service ntpd restart

chkconfig ntpd on*

e per sincronizzare l’orologio di sistema:

hwclow -w[/quote]

grazie mille, ho provato a seguire gli step ed ecco risultato del ntpd -q nomeserver

ntpdate -q time.ien.it
server 193.204.114.105, stratum 0, offset 0.000000, delay 0.00000
11 Nov 17:47:43 ntpdate[2021]: no server suitable for synchronization found

nonostante sia aggiungo al file ntpd.conf e step-tickers…

any idea?

prova a cambiare l’ip in: 193.204.114.232

Ho provato a settare il PDC di test(win2003) come server, ecco il risultato, ancora niente sincronizzazione…

$ ntpdate -d 192.168.159.128
12 Nov 18:47:24 ntpdate[6174]: ntpdate [email protected] Thu May 28 18:55:24 UTC 2009 (1)
Looking for host 192.168.159.128 and service ntp
host found : 192.168.159.128
transmit(192.168.159.128)
receive(192.168.159.128)
transmit(192.168.159.128)
receive(192.168.159.128)
transmit(192.168.159.128)
receive(192.168.159.128)
transmit(192.168.159.128)
receive(192.168.159.128)
transmit(192.168.159.128)
server 192.168.159.128, port 123
stratum 1, precision -6, leap 00, trust 000
refid [LOCL], delay 0.04169, dispersion 0.00092
transmitted 4, in filter 4
reference time: cea568b1.a5b22d0e Wed, Nov 11 2009 17:45:37.647
originate timestamp: cea67c98.c9cac083 Thu, Nov 12 2009 13:22:48.788
transmit timestamp: cea6c8ac.e8366ac6 Thu, Nov 12 2009 18:47:24.907
filter delay: 0.04207 0.04172 0.04181 0.04169
0.00000 0.00000 0.00000 0.00000
filter offset: -19476.1 -19476.1 -19476.1 -19476.1
0.000000 0.000000 0.000000 0.000000
delay 0.04169, dispersion 0.00092
offset -19476.119054

12 Nov 18:47:24 ntpdate[6174]: step time server 192.168.159.128 offset -19476.119054 sec

Uhm, piccolo feedback seppure in ritardo, il problema era dei vmware tools essendo su macchina virtuale, ho dovuto procurarmi la versione workstation con tool aggiornati che supportano la fedora 11, con la versione 5 di vmware workstation c’erano problemi con l’installazione…