The case without proxy DHCP
In case proxy DHCP doesn't work for you configuration
apt install -y isc-dhcp-server tftpd-hpadefault-lease-time 600;
max-lease-time 7200;
allow booting;
option space pxelinux;
option pxelinux.magic code 208 = string;
option pxelinux.configfile code 209 = text;
option pxelinux.pathprefix code 210 = text;
option pxelinux.reboottime code 211 = unsigned integer 32;
option architecture-type code 93 = unsigned integer 16;
# in this example, we serve DHCP requests from 192.168.0.(20 to 50)
# and we have a router at 192.168.0.1
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1; # our router
range 192.168.0.20 192.168.0.50;
option broadcast-address 192.168.0.255;
option domain-name-servers 192.168.0.1; # our router, again
class "pxeclients" {
match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
# bootp style option
next-server 192.168.0.11;
# DHCP style option
option tftp-server-name "192.168.0.11";
if option architecture-type = 00:10 {
filename "grub/http.efi";
} elsif option architecture-type = 00:0f {
filename "grub/http32.efi";
} elsif option architecture-type = 00:09 {
filename "grub/bootx64.efi";
option boot-size 2344;
} elsif option architecture-type = 00:07 {
filename "grub/bootx64.efi";
option boot-size 2344;
} elsif option architecture-type = 00:06 {
filename "grub/bootx32.efi";
option boot-size 2344;
} else {
filename "pxelinux.0";
}
}
}Last updated