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

    Fog Server still using DHCP after I thought I removed everything

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    8
    660
    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.
    • B
      bmick10
      last edited by

      So I have attached a few images on what system looks like in configurations. I thought DHCP was stopped on this server but still having machines pick it up.

      I was told to do: Just set dodhcp to N inside of your /opt/fog/.fogsettings file and re-run the installer. From command line I can not get to those settings…must be doing something wrong. I can get /opt/fog but won’t let me into .fogsettings says not available. I thought I had done this and got into settings to change but I am not a ubuntu expert.

      I recently went through the setup as I updated to last fog release recently and image 1 will show DCHP is not running and instructions on how to make FOG work without DHCP server as FOG server.

      Image 2 is what I run to see if I can see DHCP entries.

      Any assistance would be appreciated. Thanks1_1542301470418_IMG_2.jpg 0_1542301470418_IMG 1.jpg

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @bmick10
        last edited by

        @bmick10 On the CLI, you must first become root:
        sudo -i

        Then, edit the fogsettings file with vim:
        vim /opt/fog/.fogsettings

        Set dodhcp to N, as you already know. Here’s the syntax:
        https://wiki.fogproject.org/wiki/index.php?title=.fogsettings#dodhcp

        Here’s a tutorial on vi, which also applies to vim:
        https://wiki.fogproject.org/wiki/index.php?title=Vi
        Make sure you save your changes.

        Then re-run the fog installer.

        Here’s just a handful of commands to do things with the dhcp service directly…
        status: systemctl status dhcpd
        stop: systemctl stop dhcpd
        start: systemctl start dhcpd
        disable: systemctl disable dhcpd
        enable: systemctl enable dhcpd

        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!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        B 1 Reply Last reply Reply Quote 0
        • george1421G
          george1421 Moderator
          last edited by

          Ok lets see if the dhcp server is still running. We can do this with two commands.

          #1 See if its listening. Post the output of this command.
          netstat -an|grep 67

          The output should have this line in it if the dhcp server is running

          udp        0      0 0.0.0.0:67              0.0.0.0:*
          

          #2 The next check is to see if the dhcp server is running in memory. Post the output of this line here and I’ll decode it.
          ps aux|grep dhcp

          Based on the output of the two above commands we’ll decide the next steps.

          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!

          B 1 Reply Last reply Reply Quote 0
          • B
            bmick10 @george1421
            last edited by

            @george1421 It is running I can tell. I think i found the issue. Will post to wayne’s comment but here is what it came back as. 0_1542308781761_IMG_3.jpg

            george1421G 1 Reply Last reply Reply Quote 0
            • B
              bmick10 @Wayne Workman
              last edited by

              0_1542309228528_IMG_5.jpg @Wayne-Workman So think I found the issue the start and end range? Also can I leave the dhcpd as is? Anything else anyone see? Thanks![0_1542309195347_IMG_5.jpg](Uploading 96%)

              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @bmick10
                last edited by george1421

                @bmick10 Ok I see from the picture that isc-dhcp service is still running (hint: the very last line).

                So from the linux command prompt key in

                sudo systemctl disable isc-dhcp-server
                sudo systemctl stop isc-dhcp-server
                

                Now run the netstat command, that udp 0.0.0.0:67 line should be gone.

                Understand this will turn off the dhcp server on the FOG server, if that was your intent.

                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!

                B 1 Reply Last reply Reply Quote 0
                • B
                  bmick10 @george1421
                  last edited by

                  @george1421 Here is a picture of now. I also ran ps aux|grep dhcp in picture 2. Seems to be off now after I ran: So one question if I update will it enable these? Just want this to stop which I think it is and I restarted a few times and not seeing it running.1_1542317166506_IMG_2670.jpg 0_1542317166504_IMG_2669.jpg
                  sudo systemctl disable isc-dhcp-server
                  sudo systemctl stop isc-dhcp-server

                  george1421G 1 Reply Last reply Reply Quote 0
                  • george1421G
                    george1421 Moderator @bmick10
                    last edited by

                    @bmick10 So now that you have it configured to not restart when the system is that’s good. Now just make sure the settings are correct in your .fogsettings file so that the dhcp server isn’t reenabled when you update FOG.

                    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
                    • 1 / 1
                    • First post
                      Last post

                    264

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project