Forums

Resolved
0 votes
Hi all,

I cant figure this out:

How do I set up my dhcp server, to point to an existing tftp netboot server.
Witch file do I need to edit, and what do I put in it?

I have a netbootxyz-server on IP: 192.168.0.60, how and what do I need to edit so the dhcp server point to it?
And the boot-file is: netboot.xyz.kpxe

I need help, please.
Friday, February 23 2024, 12:31 AM
Share this post:
Responses (2)
  • Accepted Answer

    Mick L
    Mick L
    Offline
    Wednesday, June 12 2024, 10:42 AM - #Permalink
    Resolved
    0 votes
    This answer is wrong. ClearOS does not use dhcpd for DHCP. It uses dnsmasq.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, June 12 2024, 03:59 AM - #Permalink
    Resolved
    0 votes
    merge fruit
    Hi all,

    I cant figure this out:

    How do I set up my dhcp server, to point to an existing tftp netboot server.
    Witch file do I need to edit, and what do I put in it?

    I have a netbootxyz-server on IP: 192.168.0.60, how and what do I need to edit so the dhcp server point to it?
    And the boot-file is: netboot.xyz.kpxe

    I need help, please.

    Hello,
    To set up your DHCP server on ClearOS to point to an existing TFTP netboot server, you'll need to make some configuration changes. Here's a step-by-step guide on how to achieve this:

    1. SSH into your ClearOS server or access the command-line interface.

    2. Open the DHCP server configuration file using a text editor. The file you need to edit is located at /etc/dhcp/dhcpd.conf. For example, you can use the following command to open the file with the nano editor:

    sudo nano /etc/dhcp/dhcpd.conf


    3. Inside the dhcpd.conf file, you'll need to add or modify the following lines:
    nginx
    option architecture-type code 93 = unsigned integer 16;

    subnet 192.168.0.0 netmask 255.255.255.0 {
    range 192.168.0.100 192.168.0.200;
    option routers 192.168.0.1;
    option broadcast-address 192.168.0.255;
    option domain-name-servers 8.8.8.8, 8.8.4.4;
    option tftp-server-name "192.168.0.60";
    option bootfile-name "netboot.xyz.kpxe";

    class "pxeclients" {
    match if substring (option vendor-class-identifier, 0, 9) = "PXEClient";
    next-server 192.168.0.60;
    filename "netboot.xyz.kpxe";
    }
    }

    In this configuration snippet, make sure to replace the IP address 192.168.0.60 with the actual IP address of your TFTP netboot server.

    4. Save the changes to the dhcpd.conf file and exit the text editor.
    5. Restart the DHCP server to apply the new configuration. You can do this by running the following command:

    sudo service dhcpd restart
    The reply is currently minimized Show
Your Reply