DHCP Server

Is there anyway to configure this to be a dhcp server?
I have installed the dhcp service and configured the dhcpd.conf file as follows:

ddns-update-style interim;
ignore client-updates;

option tftp66 code 66 = string;
subnet 192.168.2.0 netmask 255.255.255.0 {
option tftp66 “192.168.2.30”;
authoritative;
option routers 192.168.2.1;
option domain-name “CFirst.local”;
option domain-name-servers 192.168.2.1;
pool {
option routers 192.168.2.1;
range 192.168.2.100 192.168.2.150;
}
}

i can get the service to start but the phones won’t get an ip. I can get a windows machine to pull an ip. Please help

I usually use Webmin to configure the DHCP server. If PC’s are grabbing an IP and phones are not it almost sounds like the phones are on a different VLAN.

how do you get the web admin to configure the dhcp server on freepbx? i would love an easier way than editing the config file. Also they are all connected to the same lan subnet. The phones are aastra 6737i’s… Do i need to factory default the phones as they were setup using a different subnet?

If the phones were in a different subnet might they also have been in a different VLAN as well originally? Resetting to factory defaults would clear this.