furstoss maurice a écrit : > le Fri, 01 Dec 2006 10:00:34 +0100 > patux <[EMAIL PROTECTED]> a écrit: > >> Que contient ntp.conf? > > # Undisciplined Local Clock. This is a fake driver intended for backup > # and when no outside source of synchronized time is available. The > # default stratum is usually 3, but in this case we elect to use stratum > # 0. Since the server line does not have the prefer keyword, this driver > # is never used for synchronization, unless no other other > # synchronization source is available. In case the local host is > # controlled by some external source, such as an external oscillator or > # another protocol, the prefer keyword would cause the local host to > # disregard all other synchronization sources, unless the kernel > # modifications are in use and declare an unsynchronized condition. > # > server 127.127.1.0 # local clock > fudge 127.127.1.0 stratum 10 > > #server 0.0.fr.pool.ntp.org > #server 1.0.fr.pool.ntp.org > #server 2.0.fr.pool.ntp.org > server pool.ntp.org > #server pool.ntp.org > #server pool.ntp.org > > # > # Drift file. Put this in a directory which the daemon can write to. > # No symbolic links allowed, either, since the daemon updates the file > # by creating a temporary in the same directory and then rename()'ing > # it to the file. > # > driftfile /etc/ntp/drift > multicastclient # listen on default 224.0.1.1 > broadcastdelay 0.008 > > # > # Keys file. If you want to diddle your server at run time, make a > # keys file (mode 600 for sure) and define the key number to be > # used for making requests. > # PLEASE DO NOT USE THE DEFAULT VALUES HERE. Pick your own, or remote > # systems might be able to reset your clock at will. > # > #keys /etc/ntp/keys > #trustedkey 65535 > #requestkey 65535 > #controlkey 65535 > > #restrict default ignore > voici le mien il n'a rien de particulier seulement plutôt que d'utiliser le pool je désigne directement les serveur que je veux utiliser. [EMAIL PROTECTED]:~/kiba-dock$ cat /etc/ntp.conf # /etc/ntp.conf, configuration for ntpd
# ntpd will use syslog() if logfile is not defined
#logfile /var/log/ntpd
driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# You do need to talk to an NTP server or two (or three).
server ntp.ubuntu.com
# ... and use the local system clock as a reference if all else fails
# NOTE: in a local network, set the local stratum of *one* stable server
# to 10; otherwise your clocks will drift apart if you lose connectivity.
fudge 127.127.1.0 stratum 13
# By default, exchange time with everybody, but don't allow configuration.
# See /usr/share/doc/ntp-doc/html/accopt.html for details.
restrict default kod notrap nomodify nopeer noquery
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1 nomodify
# Clients from this (example!) subnet have unlimited access,
# but only if cryptographically authenticated
#restrict 192.168.123.0 mask 255.255.255.0 notrust
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255
# If you want to listen to time broadcasts on your local subnet,
# de-comment the next lines. Please do this only if you trust everybody
# on the network!
#disable auth
#broadcastclient
server 127.127.1.0
server ntp.univ-lyon1.fr
server canon.inria.fr
server chronos.cru.fr
donc pour moi il y a 4 serveur de temps au choix
server ntp.ubuntu.com
server 127.127.1.0
server ntp.univ-lyon1.fr
server canon.inria.fr
server chronos.cru.fr
actuellement c'est le premier qui à la meilleur distance.
et voici le résultat de ntpq -p
[EMAIL PROTECTED]:~/kiba-dock$ ntpq -p
remote refid st t when poll reach delay offset
jitter
==============================================================================
*fiordland.ubunt 193.79.237.14 2 u 78 1024 377 26.199 0.880
0.676
LOCAL(0) LOCAL(0) 13 l 59 64 377 0.000 0.000
0.001
--
Pierre Anselm
Linux user #168565
Qu'y a-t-il de plus beau qu'un arbre au printemps, à part peut-être un
cerf chantant "Stranger in the night" au clair de lune avec des guêtres
? -+- Woody Allen -+-
signature.asc
Description: OpenPGP digital signature
========================================= Vous souhaitez acquerir votre pack ou des services Mandriva? Rendez-vous sur "http://store.mandriva.com". Rejoignez le club Mandriva : http://club.mandriva.com =========================================
