Page 1 of 1

DHCP vs Static IP Addressing

Posted: Thu Jan 03, 2013 9:16 pm
by Jonathan
I have a few questions about DHCP and Static IP Addressing.

(1) It seems to me that an IT savy user could set their own static IP address in order to get a new quota. Is that correct?

(2) Is static addressing purely just that, or does that option double as a reservation for IP addresses that are inside the scope, therefore stopping users from beating the quota?

(3) Is it possible to set a quota by mac address rather than IP, or should I include that as a feature request?

(4) Is it possible to set a TFTP server in the DHCP options? Scope options are not in the GUI, but presumably this could be done from ssh? I need this option in order to allow my Cisco phones to find their configuration files located in a tftp server in a FreePBX phone server. Are there any files in DHCP setup that are automatically overwritten, which would defeat my setting this option?

Re: DHCP vs Static IP Addressing

Posted: Fri Jan 04, 2013 5:42 pm
by pbix
Jonathan wrote:
(1) It seems to me that an IT savy user could set their own static IP address in order to get a new quota. Is that correct?
No, there is a check box that locks MAC addresses to IP addresses so they cannot use another address.
Jonathan wrote:
(2) Is static addressing purely just that, or does that option double as a reservation for IP addresses that are inside the scope, therefore stopping users from beating the quota?
This option causes DHCP to always allocate the specified address to the specified MAC. The IP address you use can be inside or outside the IP address range that DHCP is automatically using. See the man page for dnsmasq.
Jonathan wrote:
(3) Is it possible to set a quota by mac address rather than IP, or should I include that as a feature request?
No it is not possible and also not necessary because of the above.
Jonathan wrote:
(4) Is it possible to set a TFTP server in the DHCP options? Scope options are not in the GUI, but presumably this could be done from ssh? I need this option in order to allow my Cisco phones to find their configuration files located in a tftp server in a FreePBX phone server. Are there any files in DHCP setup that are automatically overwritten, which would defeat my setting this option?
No problem as long as your router has sufficient RAM and FLASH. There are packages you can install from the CLI which can do this but Gargoyle uses dnsmasq which seems to have a read-only TFTP server built in for just this purpose. You would then only need to modify a script file to enable the option.

Re: DHCP vs Static IP Addressing

Posted: Sat Jan 05, 2013 6:59 pm
by Jonathan
Ok, the terminology stumped me because I think of a static IP address as something that is set manually, and would refer to an dynamic IP address that is predetermined as a reservation.