Projekat

Općenito

Profil

Akcije

Podrška #14376

Zatvoren

ntp.bring.out.ba - smraka-1.bring.out.ba

Dodano od Ernad Husremović prije oko 17 godina. Izmjenjeno prije oko 17 godina.

Status:
Zatvoreno
Prioritet:
Normalan
Odgovorna osoba:
Kategorija:
ntp
Početak:
28.05.2008
Završetak:
% završeno:

100%

Procjena vremena:

Opis

podesiti ntp server na smraka-1

Akcije #1

Izmjenjeno od Ernad Husremović prije oko 17 godina

  • Kategorija postavljeno na ntp
  • % završeno promijenjeno iz 0 u 100

smraka-1 /etc/ntp.conf

# /etc/ntp.conf, configuration for ntpd

driftfile /var/lib/ntp/ntp.drift

# Enable this if you want statistics to be logged.
#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

server 0.de.pool.ntp.org
server 1.de.pool.ntp.org
server ntp.ubuntu.com
server pool.ntp.org
server 127.127.1.0
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 -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery

# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1

restrict 192.168.45.0 mask 255.255.255.0 nomodify notrap
restrict 192.169.45.0 mask 255.255.255.0 nomodify notrap

# If you want to provide time to your local subnet, change the next line.
broadcast 192.168.45.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

neposredno nakon startanja servera:

root@hp-smraka-1:~# ntpq -p

     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 ntp.goneco.de   160.45.10.8      2 u   61   64    3   43.685    3.824   0.496
 sumpfbude.de    130.133.1.10     2 u   63   64    3   52.721   10.552   1.889
 europium.canoni 192.36.133.17    2 u   61   64    3   58.204    5.993  62.833
 vito.coqtech.co 148.6.0.1        3 u   61   64    3   53.792   10.817   4.518
 LOCAL(0)        .LOCL.          13 l   58   64    3    0.000    0.000   0.001
 192.168.45.255  .BCST.          16 u    -   64    0    0.000    0.000   0.001

napočetku sam dobio

hernad@nmraka-1:~$ sudo ntpdate -q ntp.bring.out.ba

server 192.168.45.3, stratum 16, offset -0.175091, delay 0.02570
28 May 13:45:19 ntpdate[14723]: no server suitable for synchronization found


tek nakon 10-tak minuta dobio sam "*" na pojedinim serverima, i tada je ntp.server u funkciji
root@hp-smraka-1:~# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*ntp.goneco.de   192.53.103.108   2 u  853 1024  377   43.355   -4.756   0.409
+sumpfbude.de    130.133.1.10     2 u  342 1024  377   52.649    0.236   2.453
+europium.canoni 192.36.133.17    2 u  287 1024  377   53.260   -2.413   0.533
-vito.coqtech.co 148.6.0.1        3 u  331 1024  377   38.279  -19.411   0.201
 LOCAL(0)        .LOCL.          13 l   62   64  377    0.000    0.000   0.001
 192.168.45.255  .BCST.          16 u    -   64    0    0.000    0.000   0.001

nakon što sam dobio zvjedice, ntp server se počeo normalno javljati

hernad@nmraka-1:~$ ntpdate -q ntp.bring.out.ba

server 192.168.45.3, stratum 3, offset -1.384847, delay 0.02570
28 May 20:03:31 ntpdate[16075]: step time server 192.168.45.3 offset -1.384847 sec

Akcije #2

Izmjenjeno od Ernad Husremović prije oko 17 godina

  • Status promijenjeno iz Dodijeljeno u Zatvoreno
Akcije

Također dostupno kao Atom PDF