<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-2" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16659">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Zdravím přítomné.</FONT></DIV>
<DIV><FONT size=2 face=Arial>Už od rána ležím nad problémem synchronizace času
NTP serveru. Už jsem prolezl celý internet ale jako nonlinux guru z toho moc
moudrý nejsem. Výpis příkazu sudo ntpq -p mi vypíše</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>
remote
refid st t when poll reach
delay offset
jitter<BR>==============================================================================<BR> 192.168.1.1
.INIT. 16
u - 64 0
0.000 0.000
0.000<BR> tik.cesnet.cz
.INIT. 16
u - 64 0
0.000 0.000
0.000<BR> tak.cesnet.cz
.INIT. 16
u - 64 0
0.000 0.000 0.000</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>už zkouším všechno možné, i spojení na 192.168.1.1
což je router který NTP má. Poradíte mi prosím co zkontrolovat?</FONT></DIV>
<DIV><FONT size=2 face=Arial>Takhle vypadá ntp.conf</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial># /etc/ntp.conf, configuration for ntpd; see
ntp.conf(5) for help</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>driftfile /var/lib/ntp/ntp.drift</FONT></DIV>
<DIV> </DIV><FONT size=2 face=Arial>
<DIV><BR># Enable this if you want statistics to be logged.<BR>#statsdir
/var/log/ntpstats/</DIV>
<DIV> </DIV>
<DIV>statistics loopstats peerstats clockstats<BR>filegen loopstats file
loopstats type day enable<BR>filegen peerstats file peerstats type day
enable<BR>filegen clockstats file clockstats type day enable</DIV>
<DIV> </DIV>
<DIV><BR># You do need to talk to an NTP server or two (or three).<BR>#server
ntp.your-provider.example</DIV>
<DIV> </DIV>
<DIV># pool.ntp.org maps to about 1000 low-stratum NTP servers. Your
server will<BR># pick a different set every time it starts up. Please
consider joining the<BR># pool: <<A
href="http://www.pool.ntp.org/join.html">http://www.pool.ntp.org/join.html</A>></DIV>
<DIV> </DIV>
<DIV>#puvodni nastaveni<BR>#server 0.debian.pool.ntp.org iburst<BR>#server
1.debian.pool.ntp.org iburst<BR>#server 2.debian.pool.ntp.org iburst<BR>#server
3.debian.pool.ntp.org iburst</DIV>
<DIV> </DIV>
<DIV>#nove nastaveni cz casovych serveru<BR>server 192.168.1.1 prefer<BR>server
tik.cesnet.cz<BR>server tak.cesnet.cz</DIV>
<DIV> </DIV>
<DIV># Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html
for<BR># details. The web page <<A
href="http://support.ntp.org/bin/view/Support/AccessRestrictions">http://support.ntp.org/bin/view/Support/AccessRestrictions</A>><BR>#
might also be helpful.<BR>#<BR># Note that "restrict" applies to both servers
and clients, so a configuration<BR># that might be intended to block requests
from certain clients could also end<BR># up blocking replies from your own
upstream servers.</DIV>
<DIV> </DIV>
<DIV># By default, exchange time with everybody, but don't allow
configuration.<BR>restrict -4 default kod notrap nomodify nopeer
noquery<BR>restrict -6 default kod notrap nomodify nopeer noquery</DIV>
<DIV> </DIV>
<DIV># Local users may interrogate the ntp server more closely.<BR>restrict
127.0.0.1<BR>restrict ::1</DIV>
<DIV> </DIV>
<DIV># Clients from this (example!) subnet have unlimited access, but only
if<BR># cryptographically authenticated.<BR>#restrict 192.168.123.0 mask
255.255.255.0 notrust</DIV>
<DIV> </DIV>
<DIV><BR># If you want to provide time to your local subnet, change the next
line.<BR># (Again, the address is an example only.)<BR>#broadcast
192.168.123.255</DIV>
<DIV> </DIV>
<DIV># If you want to listen to time broadcasts on your local subnet, de-comment
the<BR># next lines. Please do this only if you trust everybody on the
network!<BR>#disable auth<BR>#broadcastclient<BR></FONT></DIV></BODY></HTML>