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

    DHCP-Server is not fog, so how..

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    10
    884
    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.
    • S
      simpsonetti
      last edited by

      Hi, as the subject described it, i have a running dhcp-server with “static” IP, so i got every MAC-address, add them into my dhcp and serve them the same ip. Works fine.
      Now i wnat to use fog as imaging solution. I don’t want to use fog as dhcp-server, but how could i change my settings to guide the pxe-menu from my running server, to the fog-pxe-menu to capture my first image and than deploy it?
      I will/have to use the fog-pxe.
      thanks for some hints.
      regards simpsonetti

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @simpsonetti What kind of DHCP server do you have? Do you have rights to change settings or is the DHCP managed by a different team? In both cases we have a solution for you, just need to known.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          simpsonetti
          last edited by

          @Sebastian-Roth
          ISC dhcp and yes, full access to the server.

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Sebastian Roth

            @simpsonetti Check out the wiki article on DHCP configuration including the examples.

            Most important part in your case is probably next-server x.x.x.x; and those class "UEFI-32-1" sections with various names.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            S 1 Reply Last reply Reply Quote 1
            • S
              simpsonetti @Sebastian Roth
              last edited by

              @Sebastian-Roth
              Okay thanks, i will try.
              I have here brand new fujitsu d738 with UEFI only. No legacy bios, no CSM. SebureBoot is off.
              I hope if my dhcp settings are right, i could capture the image and deploy it…

              1 Reply Last reply Reply Quote 0
              • S
                simpsonetti
                last edited by

                hm, i add this to my config (i have already a pxe that works with bios and uefi/bios, but not with uefi-only)
                The “next-server” should only be in the 172.18 subnet. I think the positino is right, but it didn’t work, the client tries to use the old pxe-server, not fog…
                any ideas?

                option routers 172.16.0.2;
                option ntp-servers 172.16.0.2;
                option time-servers 172.16.0.2;
                option lpr-servers 172.16.0.4;
                option netbios-name-servers 172.16.0.2;
                option wpad-curl code 252 = text;
                option wpad-curl "http://admin.mydomain.de/proxy.pac";
                option arch code 93 = unsigned integer 16;
                if option arch = 00:07 {
                      filename "efi/grub.efi";
                } else {
                      filename "pxelinux.0";
                }
                
                shared-network "schulnetz" {
                        subnet 172.16.0.0 netmask 255.255.0.0 {
                                next-server 172.16.0.2;
                                pool {
                                        range dynamic-bootp 172.16.1.0 172.16.1.25;
                                        allow unknown clients;
                                        deny  known clients;
                                        default-lease-time 300;
                                        max-lease-time 600;
                                }
                        }
                
                        subnet 172.18.0.0 netmask 255.255.0.0 {
                
                                next-server 172.18.2.14;
                
                
                    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
                • S
                  Sebastian Roth Moderator
                  last edited by

                  @simpsonetti Is your DHCP server also a router with different network interfaces for those networks?

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 0
                  • S
                    simpsonetti
                    last edited by

                    yes. there are 2 NICs. one for my educational network, one for our administration. I need this first for our administration

                    1 Reply Last reply Reply Quote 0
                    • S
                      Sebastian Roth Moderator
                      last edited by

                      @simpsonetti It’s hard to give an answer on why this doesn’t work the way you want it if we don’t know how the full setup looks like. You are using shared-network which I have never used before. I have no idea what consequences this might have. Are those two networks (172.16.0.0/16 and 172.18.0.0/16) on the same physical ethernet? Using VLANs as well? You might want to post the full output of ip a s and your complete dhcpd.conf plus information on VLANs so we get the full picture.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      1 Reply Last reply Reply Quote 1
                      • S
                        simpsonetti
                        last edited by

                        Hi, sorry for the long time without response.
                        I checked a WDS and this server couldn’t serve too,
                        Than I put one client in my other dhcp config and tada, it works.
                        So it’s with the shared-network settings, that at least pxe won’t work. I have this config for now 2 Years an most of the time myself is in “the other net” so i don’t have seen this behavior.

                        My work around is to put my cloning Pc in the “working” net, image them and than change it to the other net.

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

                        145

                        Online

                        12.1k

                        Users

                        17.3k

                        Topics

                        155.3k

                        Posts
                        Copyright © 2012-2024 FOG Project