Page 1 of 1

SOLVED: Advanced DHCP configuration

Posted: Tue Sep 13, 2016 4:52 am
by aemonb
Can someone tell me if it's possible to configure advanced DHCP settings, besides the basic settings you see in the web gui?
If i do a web search for Fedora DHCP i find articles referring to a DHCP configuration file /etc/dhcp/dhcpd.conf but this doesn't exist on Amahi.
I need the flexibility to configure DHCP options for some devices i have, such as Option 160 for provisioning of SIP phones.

Thanks
Aemon

Re: Advanced DHCP configuration

Posted: Tue Sep 13, 2016 5:17 am
by bigfoot65
Can someone tell me if it's possible to configure advanced DHCP settings, besides the basic settings you see in the web gui?
Short answer is no.

Amahi uses dnsmasq and attempting to change the settings could break the DHCP capability.
I need the flexibility to configure DHCP options for some devices i have, such as Option 160 for provisioning of SIP phones.
I don't know what this means. What specifically are you wanting to change?

Re: Advanced DHCP configuration

Posted: Wed Sep 14, 2016 2:21 am
by aemonb
Thanks Bigfoot your info helped me figure it out.

I was able to add the DHCP option by editing /etc/dnsmasq.conf and including the following string:

Code: Select all

dhcp-option=160,http://192.168.73.111/firmwarefiles;ipp/dhcpoption160.cfg
where

Code: Select all

http://192.168.73.111/firmwarefiles;ipp/dhcpoption160.cfg
is the phone vendor specific string i needed to include.

DHCP option 160 is widely used by IP phone vendors to to advertise the IP phone provisioning/management server. When the phone picks up an IP address it understands the string and goes off to the phone management server to download it's configuration and new firmware if needed.

Re: Advanced DHCP configuration

Posted: Wed Sep 14, 2016 4:27 am
by bigfoot65
I was able to add the DHCP option by editing /etc/dnsmasq.conf
That is great to hear.

I would recommend not modifying the dnsmasq.conf file directly though. Recommend you create a separate configuration file, named something like phone.conf and put it in the /etc/dnsmasq.d directory. Then restart dnsmasq and all should work.

This will prevent your settings from getting lost due to OS update. I did some additional research and determined that is how Amahi modifies the DHCP settings.

This might be something good to add to the wiki. I will have to add that to my list of things to do.

I will mark this thread as solved.