Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: AndyP 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 )
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.
Andy
-
Do you mean
$OUT .= "\n";
-
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 ?
-
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.
-
I use the DHCPmanager contrib
https://wiki.contribs.org/Dhcpmanager (https://wiki.contribs.org/Dhcpmanager)
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.