TFTP (Trivially File Transfer Protocol) und PXE (Preboot Execution Environment) werden häufig für Netzboot, Firmware-Updates, Konfigurationsuploads und automatisierte Betriebssysteminstallationen genutzt.
TFTP ist ein sehr einfaches DateiĂĽbertragungsprotokoll.
Es verzichtet bewusst auf Funktionen wie:
Es wird eingesetzt in:
Ablauf:
ASCII:
Client → UDP/69 → TFTP-Server → Dynamischer Port → Datenübertragung
tftp 192.168.1.10 tftp> get config.cfg tftp> put firmware.bin
PXE ermöglicht es, einen Computer über das Netzwerk zu booten, ohne Festplatte oder lokales Betriebssystem.
Es basiert auf:
Kompletter Boot-Vorgang Schritt fĂĽr Schritt:
1. Client startet (BIOS/UEFI) 2. NIC sendet DHCP-Discover mit PXE-Option 3. DHCP-Server sendet Adresse + PXE-Optionen (Option 66 & 67) 4. Client lädt Bootloader via TFTP 5. Bootloader lädt Kernel + Initrd via TFTP 6. Betriebssystem startet Installationsroutine oder Live-System
pxelinux.0)Beispiel:
option tftp-server-name "192.168.1.10"; option bootfile-name "pxelinux.0";
Typisch bei Linux PXE-Umgebungen:
/tftpboot/ /tftpboot/pxelinux.0 /tftpboot/ldlinux.c32 /tftpboot/menu.cfg /tftpboot/images/debian/ /tftpboot/images/windows/ /tftpboot/initrd.img /tftpboot/vmlinuz
Da beide Protokolle keine Sicherheit bieten:
Modernere PXE-Varianten (iPXE) unterstĂĽtzen:
Client ──DHCP──> DHCP-Server (Option 66/67)
↓
lädt Bootloader via TFTP
↓
lädt Kernel + Initrd via TFTP
↓
Start des Installers / Betriebssystems