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

    DHCP release after FOG menu exit

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    3
    6
    726
    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.
    • A
      Aki Heikkinen
      last edited by

      Hello,

      How you can release DHCP lease when FOG boot menu exits?

      PXE based lease is just computers MAC address. After W10 1809 starts up it happily accepts the existing lease but without updating hostname in DHCP server to computername.domain and thus DNS records are not set correctly.

      Or am I missing something else here?

      A george1421G 2 Replies Last reply Reply Quote 0
      • A
        Aki Heikkinen @Aki Heikkinen
        last edited by

        DHCP to DNS dynamic updates are of course enabled.

        1 Reply Last reply Reply Quote 0
        • Q
          Quazz Moderator
          last edited by

          I think adding dhclient -r to /images/postdownloadscripts/fog.postdownload might work.

          A 1 Reply Last reply Reply Quote 0
          • A
            Aki Heikkinen @Quazz
            last edited by

            @Quazz said in DHCP release after FOG menu exit:

            og.postdownload

            Isn’t that launched only after image deployment?

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

              @Aki-Heikkinen What dhcp server are you using?

              Is the issue that the dhcp name is wrong, or is it the dns name is wrong? After the system is renamed and rebooted, does the dhcp name still stay the old system name?

              The issue with releasing dhcp should be already addressed “during imaging”. If you look at this website: https://github.com/FOGProject/fos/blob/master/Buildroot/board/FOG/FOS/rootfs_overlay/etc/init.d/K40network This is the network shutdown script for FOG.

              You will see at line 9 it releases dhcp with
              /sbin/udhcpc -i $iface -R

              Upon the first boot of Windows 10 while Windows Setup is running, the system is given a random name by WinSetup/OOBE. Once OOBE is done and the FOG client is restarted, the fog client will rename the system and then reboot. Once WinSetup starts then FOG Imaging is not involved other than the FOG Client. IMO this is a windows issue if the name sticking in dhcp is this windows made up initial name and not its real system name. But again without knowing all of the details I can only guess.

              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 1
              • george1421G
                george1421 Moderator
                last edited by

                Well if I reread your post through a different lens…

                When you pxe boot through the fog iPXE boot menu and let the default “Boot to hard drive” menu happen, when windows starts the iPXE dhcp name is still in place and windows is happy to just use that lease. If this is the case then iPXE might not be releasing the dhcp lease when it boots from the hard drive. In this case its not clear who is at fault (iPXE or Windows for just reusing what was there)?

                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

                193

                Online

                12.1k

                Users

                17.3k

                Topics

                155.3k

                Posts
                Copyright © 2012-2024 FOG Project