Configuring existing ISC-DHCP Server to work with FOG v1.2.0
-
In my current network I have a pre-existing ISC-DHCP server running on an Ubuntu server. I chose to install FOG without DHCP enabled with the assumption that I would integrate it with my existing DHCP server. I couldn’t find specific information in regards to making the actual configuration changes to make this work. After searching through the documentation here and elsewhere I eventually came across the config file entries that made this possible in the man pages of dhcp.conf. This post is just a reference for others that might need the same information and are having a tough time locating it.
The two lines you need to add to your /etc/dhcp/dhcpd.conf file are as follows:
next-server 10.10.1.13; #Fog Server IP Address option bootfile-name "undioonly.kpxe";
Example of a configuration file with these options added:
#internal LAN (eth2) subnet 10.10.0.0 netmask 255.255.0.0 { range 10.10.224.0 10.10.255.254; option routers 10.10.0.10; option subnet-mask 255.255.0.0; option broadcast-address 10.10.255.255; option domain-name-servers 10.10.1.11, 10.10.1.12; option domain-name "example.com"; option tftp-server-name "10.10.0.10"; next-server 10.10.1.13; #Fog Server IP Address option bootfile-name "undioonly.kpxe"; include "/etc/dhcp/lan.conf"; }
I eventually dug through the man pages of dhcp.conf and found the information I was needing. The redirect links to Red Hat’s documentation on DHCP from the FOG Wiki do not make any mentions of the next-server option. Hopefully this post will save others seeking the same information in the future a little time.
REFERENCES
DHCP.conf man page: http://linux.die.net/man/5/dhcpd.conf (do a quick search for “next-server” and it will take you directly to the relevant section of the document)
-
There is also:
https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence
and
https://wiki.fogproject.org/wiki/index.php?title=Fedora_21_Server#Verify_Fedora_DHCP_config_.28if_using_DHCP.29Also, if you just install FOG with DHCP, it will build the dhcpd.conf file you need, and then you can edit
/opt/fog/.fogsettings
to disable DHCP on future installations, and then disable dhcp at the OS level as well. -
And here: https://wiki.fogproject.org/wiki/index.php?title=IPXE#Linux_DHCP_.28ISC.7CDHCP.7CDHCP3.29
Seams like the information is kind of scattered.
-
Might want to change undioonly.kpxe to undionly.kpxe
-
@Sebastian-Roth What would you think about a page strictly on all things concerning ISC-DHCP ?
-
@Wayne-Workman Not sure if we have other topics (like BIOS/EFI or Mac OS X booting) scattered if we put all the ISC-DHCP relevant things into one article. Sure the best would be to link between those articles. Question remains: Should we come up with a ISC-DHCP article? I don’t know.
-
@Sebastian-Roth I’ll work on linking them all together later tonight.
-
@Wayne-Workman Thanks a lot for all you are doing to add to the FOG project! I am being kind of lazy with the wiki in the last months - nevertheless I know how important documentation is!! Thanks again.
-
@Sebastian-Roth A strong FOG Wiki is needed for a strong FOG. The moderators/developers would just be killing themselves if they answered things over and over in the forums. While the forums is also a critical component and a means of documentation - the Wiki should also be of equal concern - and the Wiki should be the first-stop-shop for people trying to do things and figure things out. If the Wiki is sound and solid, then people shouldn’t have so many issues.
Up to this point - i’ve only very generically covered 1.3.0 in the wiki because things change so fast. I’ve focused more on the Linux stuff and troubleshooting techniques. Once 1.3.0 is released - I plan on doing more basic stuff, how to do this, how to do that, best practices, and videos - a lot of videos.
-
@Sebastian-Roth said:
@Wayne-Workman Not sure if we have other topics (like BIOS/EFI or Mac OS X booting) scattered if we put all the ISC-DHCP relevant things into one article. Sure the best would be to link between those articles. Question remains: Should we come up with a ISC-DHCP article? I don’t know.
I was thinking on the best way to do this that would require the least effort to change in the future. I started thinking multiple links in many articles was a bad idea, so I made this:
https://wiki.fogproject.org/wiki/index.php?title=Related_to_ISC-DHCP
I’m now working on embedding that article in every spot that mentions ISC-DHCP while also adding to it’s list.
-
@Wayne-Workman I like the “Related_to_xyz” naming. Would suite other things as well I guess. Might wanna add this to the Knowledge Base which is linked on the main wiki page!?
-
@Sebastian-Roth said:
@Wayne-Workman I like the “Related_to_xyz” naming. Would suite other things as well I guess. Might wanna add this to the Knowledge Base which is linked on the main wiki page!?
Done.