Koozali.org: home of the SME Server

dhcpd.conf editing

lilkev

dhcpd.conf editing
« on: October 20, 2004, 07:08:44 AM »
Hi All

Probably a relatively simple one. I have a network with a number or WINS and DNS Servers. I wish to make my SME box a failover DHCP server and I want it to pass out the information about the DNS and WINS servers.

Normally to do this I woulds edit /etc/dhcpd.conf but when I re-start the service in e-smith it re-writes the file from a template somewhere that I cant seem to work out. Which file should I be editing?

Many thanks

Kev

bode

dhcpd.conf editing
« Reply #1 on: October 20, 2004, 07:51:51 AM »
Hello,

excuse my poor english (I'm a French) but I'm going to try to answer to your question.
With esmith, you cannot change the configs file. You must change the template, because esmith re-write these files during a boot. To do this, go to the directory /etc/e-smith/ then do 'ls'.
You will see a directory 'templates' which contains the original templates. To create your own one you must go in the directory /etc/e-smith/templates-custom and create 'etc' by mkdir. You go in and you create 'dhcpd.conf'. You must now have this directory '/etc/e-smith/templates-custom/etc/dhcpd.conf'. You copy  the entire directory '/etc/e-smith/templates/etc/dhcpd.conf/*' in the directory '/etc/e-smith/templates-custom/etc/dhcpd.conf'.
The files you copied are simple texte file whiwh are interpreted by perl. If you go inside each of them you will be able to change whatever you want.
Then you just have to do /sbin/e-smith/expand-template /etc/dhcpd.conf to have your custom file.

 :-)

Bode

Offline smeghead

  • *
  • 563
  • +0/-0
dhcpd.conf editing
« Reply #2 on: October 20, 2004, 06:26:06 PM »
.. and restart dhcp ...
..................