Page 1 of 1

DHCP and other various questions

Posted: Thu Dec 30, 2010 11:36 pm
by GlobalOne
Hi everyone,

I just have a few quick questions. Aside from being able to set static IPs, is it also possible to limit the maximum amount of IP addresses? We would like to place the household's devices on their own IP addresses, and then limit the total so that no new devices (such as snooping neighbors) can receive an IP address from the server due to a lack of available addresses.

Also, is it possible to change the IP address that the Amahi server is on? Or do we have to create a "new HDA" in order to achieve that? (which would be a nightmare :P)

Thank you very much!

Re: DHCP and other various questions

Posted: Fri Dec 31, 2010 5:38 am
by rgmhtt
Changing the IP address of Amahi is NOT too hard, you install phpmyadmin, change the address in the settings table, and hdact, and restart the network. Though sometimes you really have to reboot.

I have considerable experience in limiting the address range for dhcp. There are two places where you need to modify the address in the hdactl script. Look for the lines:

my $dyn_lo = $net . ".___";
my $dyn_hi = $net . ".___";

I forget what the 'defaults' are, I only have what I have changed mine to! These lines occur twice and you have to change them in each place. Then whenever there is a new updated to the Amahi scripts, you have to reapply your changes. I am working on edits for Amahi 6, to make this easier. Also this does NOT change DNS, it will still create DNS records for all address in the C block. CIDR support is another change I want to make.

Re: DHCP and other various questions

Posted: Fri Dec 31, 2010 3:30 pm
by GlobalOne
Alright, that sounds good enough to me.

Wait, Amahi 6?? It gets even better? xD haha Thanks!