Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: Sam Graf on September 12, 2011, 06:17:46 pm

Title: DHCP Options
Post by: Sam Graf on September 12, 2011, 06:17:46 pm
I have some configuration instructions that describe setting DHCP server option #181, and that seems to refer to configuring a Windows server. Went to the ISC site to see if there was a way for a mere mortal to convert the configuration instructions into something I could use in a Zentyal context.

It's all a little over my head. If someone can explain to me, or point me I the direction of some documentation that can explain to me how to translate DHCP server settings instructions meant for Windows servers into a Zentyal context, that would be great!
Title: Re: DHCP Options
Post by: christian on September 12, 2011, 06:32:01 pm
DHCP options are stored, at the end, in /etc/dhcp3/dchpd.conf
This is not available via Zentyal GUI so the only way is to modify *.mas file or better to use hooks.
The idea is to add, in the right subnet "option 181 PNAgent-IP-address" but better, if not ideal, would be GUI allowing such kind of add-on:
DHCP option number; value using 2 fields without any control as this can not be done easily unless you store somewhere what each and every option should contain (string, number etc..)
Title: Re: DHCP Options
Post by: Sam Graf on September 12, 2011, 06:37:53 pm
Thank you! So is there a document somewhere that describes the proper syntax for the various options, or is the .conf file adequately commented for this purpose (can't look for myself at the moment :-[ )?
Title: Re: DHCP Options
Post by: christian on September 12, 2011, 06:42:00 pm
man dhcpd.conf is the first starting point although not easy to read.
http://manpages.ubuntu.com/manpages/maverick/man5/dhcpd.conf.5.html (http://manpages.ubuntu.com/manpages/maverick/man5/dhcpd.conf.5.html)
Then you can have a look here:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Configuring_the_DHCP_Server (http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch08_:_Configuring_the_DHCP_Server)

Ready dhcpd.cong file is pretty straightforward  ;) if you understand what DHCP does
Title: Re: DHCP Options
Post by: Sam Graf on September 12, 2011, 10:49:55 pm
OK, Christian, with your help this is starting to make a little sense. I think.

So is something like the following correct, syntax-wise:
Code: [Select]
shared-network eth1 {
    subnet 192.168.2.0 netmask 255.255.255.0 {
        option 181 192.168.2.10
    }
}
?

I'm also reading http://midwestwyseguy.com/2011/04/docs-common-wyse-dhcp-option-tags/ to get a sense of the correct syntax and purpose.

Thank you much for your help!