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

    DHCP issue PXE-E51

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    31
    6.5k
    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
      Sebastian Roth Moderator
      last edited by

      @slashdotpwn Please answer the questions and post a 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 0
      • S
        slashdotpwn
        last edited by

        So I am not sure on which DHCP I set up I believe it was the default to be honest with you. 0_1504193380639_IMG_1929(1).JPG

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

          @slashdotpwn Looks like there is no DHCP server in that network at all. Edit /opt/fog/.fogsettings on your FOG server and try to find the line dodhcp='N'. Just change that to dodhcp='Y' and re-run the installer.

          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
            slashdotpwn
            last edited by

            I don’t even have a .fogsettings file.

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

              @slashdotpwn Then simply re-run the installer and make sure you say y (yes) when it asks you if it should setup DHCP!

              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
                slashdotpwn
                last edited by

                Okay now when I try to run the installer it says a previous version of fog settings is there. When I go to /opt/fog/ I see nothing. 0_1504199996209_image2.JPG 0_1504200012892_image1.JPG

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

                  @slashdotpwn In Linux files starting with a dot are “hidden”. So you need to use the -a option with ls to actually see it. ls -al /opt/fog/ should show the file!

                  In case you want to edit it using a GUI editor you probably need to fiddle with the file explorer options to make it show hidden files.

                  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
                    slashdotpwn
                    last edited by slashdotpwn

                    Okay I was able to use CHOWN to take control and edit the file. Rerunning the installer. Wish me luck.

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

                      @slashdotpwn On the console run sudo chmod 666 /opt/fog/.fogsettings && sudo chmod 777 /opt/fog/ (not nice but should fix this for you!)

                      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
                        slashdotpwn
                        last edited by

                        Even after changing the fogsettings file it skipped the dhcp setup 😞

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

                          @slashdotpwn How do you run the installer? Best if you switch to the proper root account for running it. I’d say, remove the config ands start over:

                          sudo su -
                          rm /opt/fog/.fogsettings
                          cd /dir/where/fog/is
                          cd bin
                          ./installfog.sh
                          

                          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
                            slashdotpwn
                            last edited by

                            Okay retrying the install now. Will let you know the results. Thanks for your patience by the way. I am usually pretty good with this kind of stuff.

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

                              When setting up the DHCP. It said no router address found. I am setting it up as a stand alone. What should I put in this case.

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

                                @slashdotpwn What do you mean by standalone? Don’t you have a router/gateway in your network to access the internet? Just put in this address when the installer asks you for it.

                                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
                                  slashdotpwn
                                  last edited by

                                  It isn’t connecting to the internet though. I am setting a static IP and connecting to it that way.

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

                                    Okay so I found out that dhcp was turned off. It looks like my dhcpd.conf file is maybe wrong. It looks like it isn’t assigning ip addresses. I am leaving the office for tonight. I will be back in the morning to hopefully figure this out.

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

                                      dhcps.conf

                                      # DHCP Server Configuration file\n#see /usr/share/doc/dhcp*/dhcpd.conf.sample
                                      # This file was created by FOG
                                      #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 seconds a client must listen for activity before trying
                                      #         to start a new MTFTP transfer
                                      # Code 5: Number of seconds 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;
                                      use-host-decl-names on;
                                      ddns-update-style interim;
                                      ignore client-updates;
                                      # Specify subnet of ether device you do NOT want service.
                                      # For systems with two or more ethernet devices.
                                      # subnet 136.165.0.0 netmask 255.255.0.0 {}
                                      subnet 10.150.18.0 netmask 255.255.255.0{
                                          option subnet-mask 255.255.255.0;
                                          range dynamic-bootp 10.150.18.10 10.150.18.254;
                                          default-lease-time 21600;
                                          max-lease-time 43200;
                                          option routers 192.168.0.1;
                                          option domain-name-servers 127.0.1.1;
                                          next-server 192.168.1.1;
                                          class "Legacy" {
                                              match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000";
                                              filename "undionly.kkpxe";
                                          }
                                          class "UEFI-32-2" {
                                              match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002";
                                              filename "i386-efi/ipxe.efi";
                                          }
                                          class "UEFI-32-1" {
                                              match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006";
                                              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 "SURFACE-PRO-4" {
                                              match if substring(option vendor-class-identifier, 0, 32) = "PXEClient:Arch:00007:UNDI:003016";
                                              filename "ipxe7156.efi";
                                          }
                                          class "Apple-Intel-Netboot" {
                                              match if substring(option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386";
                                              option dhcp-parameter-request-list 1,3,17,43,60;
                                              if (option dhcp-message-type = 8) {
                                                  option vendor-class-identifier "AAPLBSDPC";
                                                  if (substring(option vendor-encapsulated-options, 0, 3) = 01:01:01) {
                                                      # BSDP List
                                                      option vendor-encapsulated-options 01:01:01:04:02:80:00:07:04:81:00:05:2a:09:0D:81:00:05:2a:08:69:50:58:45:2d:46:4f:47;
                                                      filename "ipxe.efi";
                                                  }
                                              }
                                          }
                                      }
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • S
                                        slashdotpwn
                                        last edited by Sebastian Roth

                                        status

                                        ● isc-dhcp-server.service - ISC DHCP IPv4 server
                                           Loaded: loaded (/lib/systemd/system/isc-dhcp-server.service; enabled; vendor
                                           Active: active (running) since Thu 2017-08-31 16:42:07 EDT; 16h ago
                                             Docs: man:dhcpd(8)
                                         Main PID: 6908 (dhcpd)
                                           CGroup: /system.slice/isc-dhcp-server.service
                                                   └─6908 dhcpd -user dhcpd -group dhcpd -f -4 -pf /run/dhcp-server/dhcp
                                        
                                        Sep 01 09:06:45 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:08:19 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:10:39 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:15:01 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:16:09 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:25:01 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:26:50 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:32:18 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:33:34 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        Sep 01 09:35:01 Fogserver dhcpd[6908]: DHCPINFORM from 10.150.18.89 via ens32: n
                                        lines 1-18/18 (END)
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by Sebastian Roth

                                          @slashdotpwn said in DHCP issue PXE-E51:

                                          next-server 192.168.1.1;

                                          This doesn’t look right! What IP address does your FOG server have? Edit the dhcpd.conf file and put your FOG server IP there! Then run sudo systemctl restart isc-dhcp-server.service

                                          EDIT: Ahh, wait a second. Looking at the other screenshot I see you have used 192.168.1.1 by intend? Please tell us the IPs you wanna use for your clients and the IP your FOG server has (post a picture of sudo ip a s).

                                          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 0
                                          • S
                                            slashdotpwn @Sebastian Roth
                                            last edited by

                                            @sebastian-roth My fog server is 192.168.1.1

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

                                            177

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project