Community discussions

MikroTik App
 
User avatar
alexanderzhirov
just joined
Topic Author
Posts: 3
Joined: Wed Aug 31, 2022 10:08 pm
Contact:

Checking the OS architecture before downloading the loader via TFTP

Wed Aug 31, 2022 10:22 pm

There was a need to download the loader via TFTP, taking into account the type of architecture of the client.
In dhcpd this is option 93.
As far as I understand, I am adding a new option with the code parameter 93 to the DHCP. And how can I check when contacting TFTP, if the architecture is 00:06, then I download the syslinux.efi loader, otherwise pxelinux.0?

In Linux, in the dhcp config, I prescribed something like this:
option architecture-type code 93 = unsigned integer 16;

class "pxelinux" {
        if option architecture-type = 00:06 {
            filename "loader_uefi/syslinux.efi";
        } else if option architecture-type = 00:07 {
            filename "loader_uefi/syslinux.efi";
        } else if option architecture-type = 00:09 {
            filename "loader_uefi/syslinux.efi";
        } else {
            filename "loader_legacy/pxelinux.0";
        }
    }
 
User avatar
alexanderzhirov
just joined
Topic Author
Posts: 3
Joined: Wed Aug 31, 2022 10:08 pm
Contact:

Re: Checking the OS architecture before downloading the loader via TFTP

Tue Sep 06, 2022 1:38 pm

Do you have any ideas?
 
User avatar
alexanderzhirov
just joined
Topic Author
Posts: 3
Joined: Wed Aug 31, 2022 10:08 pm
Contact:

Re: Checking the OS architecture before downloading the loader via TFTP

Wed Nov 23, 2022 1:22 pm

Colleagues, maybe someone had a similar situation? I can't even find anything like that.

Who is online

Users browsing this forum: Google [Bot], Netstumble and 52 guests