The translation is temporarily closed for contributions due to maintenance, please come back later.
English Chinese (Simplified)
Create a simple configuration for the dhcp server at `/etc/dhcp/dhcpd.conf`
subnet netmask {
default-lease-time 600;
max-lease-time 7200;
ddns-update-style none;
option domain-name-servers;
option routers;
Test your configuration and address any problems you discover.
[command]#systemctl start dhcpd#
[command]#journalctl --unit dhcpd --since -2m --follow#
Add entries to point clients to their bootloader and the server that provides it to your subnet configuration in `/etc/dhcp/dhcpd.conf`. Because DHCP clients provide the server with identifying information along with their address request, BIOS clients and UEFI clients can each be directed to the correct bootloader.
# refer to RFC4578 for possible arch option values
option arch code 93 = unsigned integer 16;
subnet netmask {
if option arch = 00:07 {
filename "uefi/shim.efi";
} else {
filename "pxelinux.0";
Restart the dhcp service to check the configuration and make changes as needed.
[command]#systemctl restart dhcpd#
[command]#journalctl --unit dhcpd --since -2m --follow#
Installing the tftp server
Install the tftp server package.
# dnf install tftp-server
Start and enable the `tftp socket`. `systemd` will automatically start the `tftpd` service when required.
# [command]#systemctl start tftp.socket#
# [command]#systemctl enable tftp.socket#
Providing and configuring bootloaders for PXE clients
Getting the bootloader files