Linux - Netzwerk und Serveradminstration NTP: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| Zeile 35: | Zeile 35: | ||
*systemctl status ntpsec | *systemctl status ntpsec | ||
*journalctl -fu ntpsec | *journalctl -fu ntpsec | ||
| − | + | =Wo lauscht der ntpserver= | |
| − | ===NTP mit DHCP verteilen | + | *ss -lnup | grep 123 |
| + | =Wie bindet man die Clients= | ||
| + | ==Statitsch== | ||
| + | ;Inmstallation auf dem Client | ||
| + | *apt install ntpsec | ||
| + | ;Konfiguration | ||
| + | *cat /etc/ntpsec/ntp.conf | ||
| + | driftfile /var/lib/ntpsec/ntp.drift | ||
| + | leapfile /usr/share/zoneinfo/leap-seconds.list | ||
| + | tos maxclock 11 | ||
| + | tos minclock 4 minsane 3 | ||
| + | restrict default kod nomodify noquery limited | ||
| + | restrict 127.0.0.1 | ||
| + | restrict ::1 | ||
| + | server ntp.it213.int | ||
| + | ==NTP mit DHCP verteilen== | ||
*[[KEA DHCP NTP-Konfiguration - Netzwerk und Serveradministration]] | *[[KEA DHCP NTP-Konfiguration - Netzwerk und Serveradministration]] | ||
Version vom 24. April 2026, 08:41 Uhr
NTP Server
Vorbereitungen
- VirtualBox Server-Vorlage klonen
- Der Host soll im DMZ-Netzwerk liegen
- statische IP-Adresse nach dem Netzwerkplan setzen (/etc/network/interfaces)
- SSH-Schlüssel des Kit Hosts für User kit hinterlegen
Netzkonfiguration DNS-Server (DMZ)
| Parameter | Wert | Erläuterung |
|---|---|---|
| Netzwerk (NIC) | DMZ | Interface-Zuweisung in VirtualBox |
| IP | 10.88.2XX.17 | Statische IP |
| CIDR | 24 | Classless Inter-Domain Routing Präfixlänge |
| GW | 10.88.2XX.1 | GATEWAY |
| NS | 10.88.2XX.21 | Resolver |
| FQDN | ntp.it2XX.int | Fully Qualified Domain Name |
| SHORT | nntp | Short Name |
| DOM | it2XX.int | Domain Name |
- Anpassen des Templates
installieren ntp
- sudo apt install ntpsec
Handling wie gehabt
- systemctl status ntpsec
- journalctl -fu ntpsec
Wo lauscht der ntpserver
- ss -lnup | grep 123
Wie bindet man die Clients
Statitsch
- Inmstallation auf dem Client
- apt install ntpsec
- Konfiguration
- cat /etc/ntpsec/ntp.conf
driftfile /var/lib/ntpsec/ntp.drift leapfile /usr/share/zoneinfo/leap-seconds.list tos maxclock 11 tos minclock 4 minsane 3 restrict default kod nomodify noquery limited restrict 127.0.0.1 restrict ::1 server ntp.it213.int
