dhcp not running on fog
How can we use fog as dhcp server ? do we need to install program ? when we first setup we said NO to use fog as dhcp server. please help.
I found this guide online tried editing .conf file but it didn’t exist in my fog server.
@mpatel For CentOS use the following:
dodhcp='Y' bldhcp='1' dhcpd='dhcpd' packages='bc curl dhcp ...'
Then re-run the installer and see it do the work.
we use centos 7. I would like fog to provide dhcp service to target computers. This will be isolated network. i did set dodhcp & bldhcp to correct options
@mpatel What kind of DHCP do you use right now?
If you want to enable dhcp after an initial install you’d need to modify
/opt/fog/.fogsettingsfile. Definitely make sure the following two options are set correctly:
But then there are two more that are specific to the Linux OS you have installed. As I couldn’t find any hint on what you use in your posts I have to guess. Maybe Ubuntu?
As well you need to add
isc-dhcp-server(again Ubuntu) to the packages line:
packages='bc curl ... isc-dhcp-server ...'
Then simply re-run the installer and it should setup the DHCP service for you correctly.
If you don’t want to re-run the installer you can still go ahead and install the DHCP server package manually and use the config example you find here: https://wiki.fogproject.org/wiki/index.php?title=BIOS_and_UEFI_Co-Existence#Example_1