PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : debian ntp server und windows als client



buffoon
10.06.07, 14:02
Hi!

Ich habe einen NTP Server auf meinem Debian PC aufgesetzt. Jetzt würde ich gerne den so konfigurieren dass auch die Windows Rechner der Familie mit diesem Synchronisieren können. Das VoIP Telefon und mein Debian Laptop machen das ganz brav. blos bei den windows clients wenn ich dort auf bei der Internetzeit die IP des ntp servers Eintrage geht nichts. Der Server ist auch so konfiguriert dass er auf die Broadcasts hört.

Hier mal meine ntp.conf:



# /etc/ntp.conf, configuration for 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.your-provider.example
server ptbtime1.ptb.de

# pool.ntp.org maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
# *** Please consider joining the pool! ***
# *** <http://www.pool.ntp.org/join.html> ***
server 0.debian.pool.ntp.org iburst
server 1.debian.pool.ntp.org iburst
server 2.debian.pool.ntp.org iburst
server 3.debian.pool.ntp.org iburst

# 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

restrict 192.168.1.0 mask 255.255.255.0

# 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.1.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

marcdevil
10.06.07, 16:42
Windows versteht nur MS-NTP, du musst einen anderen NTP Client installieren: http://www.tu-braunschweig.de/it/services/sys/ntp/clients

eule
10.06.07, 17:08
Windows versteht nur MS-NTP, du musst einen anderen NTP Client installieren
Ich versorge Windows mit chronyd, das funktioniert gut mit MS-Bordmitteln. Was macht der ntpd anders?

bla!zilla
10.06.07, 18:19
MS versteht nicht nur MS-NTP (was ist MS-NTP??). Ich habe viele Windows Maschinen erfolgreich per NTP versorgt - und das auch von Linux NTP Servern.

marcdevil
10.06.07, 19:04
okok, nicht MS-NTP, nur SNTP (2000) , neuere Windowse (XP,2003) sprechen NTP, gleichen sich dennoch manchmal nicht ab.

buffoon
10.06.07, 19:47
Naja, komischerweise hab ich das WinXP nicht dazu bringen gekonnt ntp mit meinem Rechner hier zu sprechen. Mit dem Tool von marcdevil hat aber alles wunderbar geklappt.

Dankeschön

MEvertz
11.06.07, 16:35
ich hab auf meinen Windows-Kisten im Autostart "net time /setsntp:<ip>" drin. Wobei <ip> die IP meines NTP ist.

bla!zilla
11.06.07, 18:26
Ich habe weder bei XP, noch bei 2000 oder 2003 Probleme. Ich konfiguriere den Windows Zeitdienst immer über w32tm.



w32tm /config /syncfromflags:manual /manualpeerlist:ip-ad-res-se
w32tm /config /update
w32tm /resync


Bei 2000 sieht das noch etwas anders aus:



net stop w32time
net time /setsntp:ip-ad-res-se
net start w32time
w32tm.exe /once


Der entsprechende Zeitserver muss natürlich auch korrekt konfiguriert sein.