Project

General

Profile

Actions

Bug #10267

closed

DHCP Server PXE options

Added by Ya Sin over 5 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
DHCP (IPv4)
Target version:
-
Start date:
02/18/2020
Due date:
% Done:

0%

Estimated time:
1.00 h
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:

Description

I was trying to set up a news PXE environment and just recognized this.

see DHCP-Server config:
TFTP Server = 10.1.1.2
Next Server = 10.1.1.2
Default BIOS file name = pxelinux.0
UEFI 32 bit file name = pxelinuxEFI32.efi
UEFI 64 bit file name = pxelinuxEFI64.efi
Root path = /pxe/

see the config file (/var/dhcpd/etc/dhcpd.conf):
class "UEFI-32-1" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00006";
option bootfile-name "pxelinuxEFI32.efi";
}
class "UEFI-32-2" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00002";
option bootfile-name "pxelinuxEFI32.efi";
}
class "UEFI-64-1" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00007";
option bootfile-name "/pxe/pxelinuxEFI64.efi";
}
class "UEFI-64-2" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00008";
option bootfile-name "/pxe/pxelinuxEFI64.efi";
}
class "UEFI-64-3" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00009";
option bootfile-name "/pxe/pxelinuxEFI64.efi";
}
class "Legacy" {
match if substring(option dhcp-client-identifier, 0, 20) = "PXEClient:Arch:00000";
option bootfile-name "pxelinux.0";
}

take a look at the /pxe/ within UEFI-64? --> this is showing to an different folder!
I as wondering why wireshark is showing tsize=0.

I added a folder pxe into pxe (--> /pxe/pxe/) and put in bootfile there --> now wireshark is showing tsize=199952 - this is correct size..

this took me now hours - but glad to found :D

Actions #1

Updated by Ya Sin over 5 years ago

just recognized one more thing:

within the subnet configuration - there is another config showing up the bootfiles:
next-server 10.1.1.2;
if option arch = 00:06 {
filename "pxelinuxEFI32.efi";
} else if option arch = 00:07 {
filename "pxelinuxEFI64.efi";
} else if option arch = 00:09 {
filename "pxelinuxEFI64.efi";
} else {
filename "pxelinux.0";
}
option root-path "/PXE/";

this seems to be correct - but why is the dhcp-server putting in the config double? one global and one for the subnet..

Actions #2

Updated by Jim Pingle over 5 years ago

  • Status changed from New to Rejected

The format in the first part is not present in pfSense code. It must have been manually edited into your firewall. Only the format in your later comment is in the pfSense source.

Actions #3

Updated by Ya Sin over 5 years ago

thank you Jim - interesting...
I thought that already and delete the "wrong" part. but after every service reload - this part is coming back, pfsense is auto adding this back!

Actions

Also available in: Atom PDF