Koozali.org formerly Contribs.org

dhcp reservations

dhcp reservations
« on: July 19, 2019, 12:17:36 PM »
Hi All,

Just after some advice with dhcp and reservations. We don't use the DNS via SME, so can't use the gui way of adding a reservation.

So I need to create a custom template, I've done things like changing lease times, but I'm a bit unsure on how to add the multi lines when doing the custom template.

I know I need to set this to set the reservations ( I do this on a normal setup )

Code: [Select]
host <hostname> { 
    hardware ethernet 00:11:22:33:44:55; 
    fixed-address <ip-address>;

As I say I've followed this https://wiki.contribs.org/Dhcpd_lease_time before, but struggling with the multi line.

I'd rather not use a reservation, but customer has a machine there that is ingrained into so many things they don't want to move, but I really need to expand the dhcp scope.

Thanks for any help.


Offline kruhm

  • *
  • 676
Re: dhcp reservations
« Reply #1 on: July 21, 2019, 05:36:08 AM »
Do you mean
Code: [Select]
$OUT .= "\n";

Re: dhcp reservations
« Reply #2 on: July 22, 2019, 10:37:25 AM »
Maybe ? I just want to write a reservation and have created custom templates for single line bit of code before but not multi line.

I was just wondering If I could have clarification on how to do it correctly ?

Offline Jean-Philippe Pialasse

  • *
  • 1,425
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: dhcp reservations
« Reply #3 on: July 22, 2019, 02:09:32 PM »
Even if you don not use dns you can us host panel to define static ip.

2 things:
- you can setup a domain as locally dns defined (could be a faked one)
- you shall define the ip outside of the dynamically assigned dhcp range. You could adjust this range by configuring the server.

Re: dhcp reservations
« Reply #4 on: September 10, 2019, 02:41:12 PM »
I use the DHCPmanager contrib


You can set a custom DNS and custom lease time (although I haven't tried using those). Then you can see the DHCP leases, and set any reservations in the Hostname & Address admin panel.