здравствуйте. Прошу помощи. Пытаюсь настроить ntp для синхронизации часов сервера Fedora6 с интернетом и для синхронизации машин локалки /windows/ с часами Fedora6.
Вот что получилось. При ручнй синхронизации все кажется идет правильно: [root@p1]# /usr/sbin/ntpdate -v -u -d 207.46.197.32 194.58.197.7 192.43. 244.18 212.100.132.50 8 Nov 10:45:32 ntpdate[25475]: ntpdate 4.2.4p2@1.1495-o Thu Jun 21 12:57:42 UTC 2007 (1) Looking for host 207.46.197.32 and service ntp host found : 207.46.197.32 Looking for host 194.58.197.7 and service ntp host found : phaeton.delfa.net Looking for host 192.43.244.18 and service ntp host found : time.nist.gov Looking for host 212.100.132.50 and service ntp host found : iota.bramatelecom.com transmit(207.46.197.32) transmit(194.58.197.7) receive(207.46.197.32) transmit(207.46.197.32) receive(194.58.197.7) transmit(194.58.197.7) transmit(192.43.244.18) receive(194.58.197.7) transmit(194.58.197.7) receive(194.58.197.7) transmit(194.58.197.7) transmit(212.100.132.50) receive(207.46.197.32) transmit(207.46.197.32) receive(212.100.132.50) transmit(212.100.132.50) receive(194.58.197.7) transmit(194.58.197.7) receive(212.100.132.50) transmit(212.100.132.50) receive(212.100.132.50) transmit(212.100.132.50) receive(207.46.197.32) transmit(207.46.197.32) receive(207.46.197.32) transmit(207.46.197.32) transmit(192.43.244.18) receive(192.43.244.18) transmit(192.43.244.18) transmit(212.100.132.50) receive(192.43.244.18) transmit(192.43.244.18) receive(192.43.244.18) transmit(192.43.244.18) server 207.46.197.32, port 123 stratum 3, precision -6, leap 00, trust 000 refid [207.46.197.32], delay 0.36414, dispersion 0.01291 transmitted 4, in filter 4 reference time: cadd3a87.847442c7 Thu, Nov 8 2007 10:34:31.517 originate timestamp: cadd3d2f.f07c73ee Thu, Nov 8 2007 10:45:51.939 transmit timestamp: cadd3d27.7d50b955 Thu, Nov 8 2007 10:45:43.489 filter delay: 0.36414 0.43327 0.38084 0.37326 0.00000 0.00000 0.00000 0.00000 filter offset: 8.296194 8.251189 8.291591 8.283875 0.000000 0.000000 0.000000 0.000000 delay 0.36414, dispersion 0.01291 offset 8.296194
server 194.58.197.7, port 123 stratum 2, precision -20, leap 00, trust 000 refid [194.58.197.7], delay 0.14868, dispersion 0.00615 transmitted 4, in filter 4 reference time: cadd38a4.b8357830 Thu, Nov 8 2007 10:26:28.719 originate timestamp: cadd3d2f.63f98f29 Thu, Nov 8 2007 10:45:51.390 transmit timestamp: cadd3d27.08a9691a Thu, Nov 8 2007 10:45:43.033 filter delay: 0.14868 0.17342 0.15340 0.17751 0.00000 0.00000 0.00000 0.00000 filter offset: 8.295239 8.284958 8.291678 8.280685 0.000000 0.000000 0.000000 0.000000 delay 0.14868, dispersion 0.00615 offset 8.295239
server 192.43.244.18, port 123 stratum 1, precision -31, leap 00, trust 000 refid [ACTS], delay 0.30870, dispersion 8.00900 transmitted 4, in filter 4 reference time: cadd3cf2.f525f1c5 Thu, Nov 8 2007 10:44:50.957 originate timestamp: cadd3d30.dd0ccb77 Thu, Nov 8 2007 10:45:52.863 transmit timestamp: cadd3d28.6cf3fd93 Thu, Nov 8 2007 10:45:44.425 filter delay: 0.00000 0.30870 0.33366 0.32953 0.00000 0.00000 0.00000 0.00000 filter offset: 0.000000 8.298369 8.287210 8.285893 0.000000 0.000000 0.000000 0.000000 delay 0.30870, dispersion 8.00900 offset 8.298369
server 212.100.132.50, port 123 stratum 2, precision -19, leap 00, trust 000 refid [212.100.132.50], delay 0.13734, dispersion 8.00597 transmitted 4, in filter 4 reference time: cadd39c5.904c5e6c Thu, Nov 8 2007 10:31:17.563 originate timestamp: cadd3d2f.a92de8c2 Thu, Nov 8 2007 10:45:51.660 transmit timestamp: cadd3d27.6be78e19 Thu, Nov 8 2007 10:45:43.421 filter delay: 0.17241 0.15369 0.13734 0.00000 0.00000 0.00000 0.00000 0.00000 filter offset: 8.282760 8.289523 8.295256 0.000000 0.000000 0.000000 0.000000 0.000000 delay 0.13734, dispersion 8.00597 offset 8.295256
8 Nov 10:45:44 ntpdate[25475]: step time server 192.43.244.18 offset 8.298369 s ec [root@p1]#
При попытке запустить демон: [root@p1]# /etc/rc.d/init.d/ntpd restart Останавливается ntpd: [ OK ] ntpd: Синхронизация по серверу времени: [ СБОЙ ] Запускается ntpd: [ OK ] - выдается ошибка.
Вот мой ntp.conf /как смог/:
# рестрикты # По умолчанию никому ничего restrict default ignore # В рамках роутера можно все restrict 127.0.0.1 # Сервера, с которыми сверяемся,должны иметь возможность менять restrict 207.46.197.32 noquery notrap # А наша сетка может только слушать... restrict 192.168.0.0 mask 255.255.255.0 notrust nomodify notrap
server 127.127.1.1 prefer fudge 127.127.1.1 stratum 0 refid NIST
# Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 207.46.197.32 server 194.58.197.7 server 192.43.244.18 server 212.100.132.50 # server 128.9.176.30 prefer # restrict 128.9.176.30 mask 255.255.255.255 # server 204.34.198.40 # restrict 204.34.198.40 mask 255.255.255.255 # server 127.127.1.0 # server 1.fedora.pool.ntp.org # server 2.fedora.pool.ntp.org
broadcast 192.168.1.255 key 42 # broadcast server broadcastclient # broadcast client #broadcast 224.0.1.1 key 42 # multicast server #multicastclient 224.0.1.1 # multicast client #manycastserver 239.255.254.254 # manycast server #manycastclient 239.255.254.254 key 42 # manycast client
# Undisciplined Local Clock. This is a fake driver intended for backup # and when no outside source of synchronized time is available. fudge 127.127.1.0 stratum 10
# 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 /var/lib/ntp/drift
# 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 # restrict None mask 255.255.255.255 nomodify notrap noquery # restrict 1.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery # restrict 2.fedora.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery logfile /var/log/ntpd.log