User Tools

Site Tools


informatique:logiciels:dhcpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
informatique:logiciels:dhcpd [2019/10/04 15:26] – [Client poli] pteuinformatique:logiciels:dhcpd [2019/12/02 09:23] (current) – [Boot BIOS vs UEFI] pteu
Line 200: Line 200:
 </code> </code>
  
 +=====Boot BIOS vs UEFI=====
  
 +Pour prendre en compte le PXE avec des machines UEFI : on doit utiliser des fichiers différents en fonction de l'architecture (ia32 et x64) :
 +<code bash>
 +# Definition of PXE-specific options
 +# Code 1: Multicast IP address of bootfile
 +# Code 2: UDP port that client should monitor for MTFTP responses
 +# Code 3: UDP port that MTFTP servers are using to listen for MTFTP requests
 +# Code 4: Number of secondes a client must listen for activity before trying
 +#         to start a new MTFTP transfer
 +# Code 5: Number of secondes a client must listen before trying to restart
 +#         a MTFTP transfer
 +option space PXE;
 + option PXE.mtftp-ip    code 1 = ip-address;
 + option PXE.mtftp-cport code 2 = unsigned integer 16;
 + option PXE.mtftp-sport code 3 = unsigned integer 16;
 + option PXE.mtftp-tmout code 4 = unsigned integer 8;
 + option PXE.mtftp-delay code 5 = unsigned integer 8;
 +option arch code 93 = unsigned integer 16; # RFC4578
 +#
 +# [..]
 +class "pxeclients" {
 +   match if substring(option vendor-class-identifier, 0, 9) = "PXEClient";
 +   next-server 10.1.0.2;
 +   # 6    EFI IA32
 +   #<-> match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006";
 +   if option arch = 00:06 {
 +      filename "uefi/bootia32.efi";
 +   # 7    EFI BC (EFI Byte Code)
 +   } else if option arch = 00:07 {
 +      filename "uefi/bootx64.efi";
 +   # Défaut (cas des machines avec BIOS classiques)
 +   } else {
 +      filename "pxelinux.0";
 +   }
 +}
 +</code>
 ======Diagnostic===== ======Diagnostic=====
  
informatique/logiciels/dhcpd.txt · Last modified: 2019/12/02 09:23 by pteu