• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Pxe Code

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    356
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      zago123
      last edited by

      Hi,
      This my code for boot pxe in fog.

      Do you think the code is right? Will I be able to boot all machines without having to change UEFI or LEGACY computers on bios?
      thanks for the help

      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 "UEFI-32-1" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006";
           filename "i386-efi/ipxe.efi";
      }
      
      class "UEFI-32-2" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002";
           filename "i386-efi/ipxe.efi";
      }
      
      class "UEFI-64-1" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007";
           filename "ipxe.efi";
      }
      
      class "UEFI-64-2" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00008";
           filename "ipxe.efi";
      }
      
      class "UEFI-64-3" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009";
           filename "ipxe.efi";
      }
      
      class "Legacy" {
           match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000";
           filename "undionly.kkpxe";
      }```
      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        You can review the default isc-dhcp configuration file here: https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Example_1

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

        1 Reply Last reply Reply Quote 0
        • Z
          zago123
          last edited by

          ty solved

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          203

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project