DHCP Server Settings....specifically ip range
Posted: Thu Apr 19, 2012 7:18 pm
Is there anyway to set the ip distribution range of the Amahi DHCP server?
Thanks,
John
Thanks,
John
The Amahi Home Server Forums
https://forums.amahi.org/
In Amahi 7, you were using dnsmasq, correct? So something tells dnsmasq to configure dhcp to use this range. That's what I'm looking for. That way I can change the range, as necessary. I know it's stored in dnsmasq.conf or in amahi-dhcp.conf inside of the dnsmasq.d directory. But is it hda-ctl that sets it up?Not sure, but I think this may be coded in the Fedora DHCP server configuration. I do not have access to my HDA currently to poke at it.
This would be something good to add to the wiki once sorted out.
These variables are set in hda-ctl as noted, so creating hda-ctl.conf and changing them should allow you to change the range at which DHCP starts.# NOTE: You can change default settings by creating /etc/hda-ctl.conf
# and putting perl variable assignments there, like for example:
#
# $DEVICE = "eth0";
# $NETMASK_SIZE = "24";
# $NET_START = "0";
# $DYN_LO = "100";
# $DYN_HI = "254";
# $DHCP_LEASE = "14400";
# $use_opendns_secondary = 0;
# $use_dnsmasq_dns = 0;
# $use_dnsmasq_dhcp = 0;
# $dnsmasq_resolve_catch_all = 0;
#
# the file is interpreted as perl, so do not break it!
# note that if these settings are in the database, those always take priority when the program starts
So does hda-ctl run automatically, or do I need to re-run it after making the conf file? Also I'm assuming that I need to uncomment and change to "1" the use_dnsmasq_dns and use_dnsmasq_dhcp options?Ok looks like there is some capability in hda-ctl to manually configure the DHCP range settings.
These variables are set in hda-ctl as noted, so creating hda-ctl.conf and changing them should allow you to change the range at which DHCP starts.# NOTE: You can change default settings by creating /etc/hda-ctl.conf
# and putting perl variable assignments there, like for example:
#
# $DEVICE = "eth0";
# $NETMASK_SIZE = "24";
# $NET_START = "0";
# $DYN_LO = "100";
# $DYN_HI = "254";
# $DHCP_LEASE = "14400";
# $use_opendns_secondary = 0;
# $use_dnsmasq_dns = 0;
# $use_dnsmasq_dhcp = 0;
# $dnsmasq_resolve_catch_all = 0;
#
# the file is interpreted as perl, so do not break it!
# note that if these settings are in the database, those always take priority when the program starts
Many of these variables are in the database, so changing them would require updating the "settings" table in hda_production. However, I do not see the DHCP range there, so making the change in the file should override the default setting.
I would recommend restarting hda-ctl.So does hda-ctl run automatically, or do I need to re-run it after making the conf file?
Code: Select all
systemctl restart hda-ctl
Those need to be set via the Dashboard under Network, Settings. Pretty much any setting in the Dashboard is also in the hda_production database.Also I'm assuming that I need to uncomment and change to "1" the use_dnsmasq_dns and use_dnsmasq_dhcp options?