Portál AbcLinuxu, 16. července 2025 20:22
gw1 ~ # /etc/init.d/ntpd start * Starting ntpd ... [ ok ] gw1 ~ #start ntp-client
gw1 ~ # /etc/init.d/ntp-client start * Setting clock via the NTP client 'ntpdate' ... 13 Mar 13:31:21 ntpdate[6982]: no server suitable for synchronization found * Failed to set clock [ !! ] gw1 ~ #file:/etc/ntp.conf
server 217.11.227.68 iburst #ntp.karpo.cz server 81.0.239.181 iburst #ntp.cgi.cz server 81.95.96.3 iburst #ntp.globe.cz driftfile /var/db/ntp.drift # Vsechny servery jsou defaultne zakazane, posle se jim kiss-of-death paket. restrict default ignore kod # Plna prava maji servery uvedene v direktive server restrict 217.11.227.68 restrict 81.0.239.181 restrict 81.95.96.3 # Podle tohto serveru se mohou konfigurovat tyto site: restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap gw1 ~ #file:/etc/conf.d/ntp-client
# Command to run to set the clock initially # Most people should just leave this line alone ... # however, if you know what you're doing, and you # want to use ntpd to set the clock, change this to 'ntpd' NTPCLIENT_CMD="ntpdate" # Options to pass to the above command # This default setting should work fine but you should # change the default 'pool.ntp.org' to something closer # to your machine. See http://www.pool.ntp.org/ or # try running `netselect -s 3 pool.ntp.org`. NTPCLIENT_OPTS=" -b -u 192.168.1.1" # How long to wait (in seconds) before giving up. # Useful for when you boot and DNS/internet isn't # really available but you have your net interface # come up with say a static IP. NTPCLIENT_TIMEOUT=30 gw1 ~ #Prosím, pomožte.
A co logy? Nehlásí žádnou chybu? A co firewall, neblokuje port 123?
ntpdate tik.cesnet.cz
, tak to projde?
ntpq -pntpdate poustet nemusis, mozna tak pro prvni "srovnani" casu, pokud mas hodiny moc mimo
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.