Is there a way to declare static hosts more smartest?

dave c dhcp at gvtc.drakkar.org
Tue May 24 13:18:39 UTC 2016


You could drop down to something like this:

host callisto {hardware ethernet 00:25:33:44:80:55; }
{repeating for all hosts}


And in your DHCP pools you can use the directive:

     allow known hosts;

Then only those hosts whose MAC addresses are predefined via host statements will get an address 
from DHCP (or from a specific pool in your subnet declarations). You could then use a dynamic 
dns update from the hosts back to your DNS server (or from DHCP to your DNS server) to make the 
host register itself into DNS.

Second option I can think of, you could instead of using the system's hostname for the 
fixed-address, you could instead use the dotted 4 IP address and again turn on DNS update. Then 
you would only have to edit the DHCP hosts file instead of having to update DNS to predefine the 
hostnames -> dotted 4 IP connection and then use that hostname in the DHCP config.

Other than that, we're not sure what it is you are trying to save.

Dave



On 5/24/16 05:39, Vladimir Skubriev wrote:
> [something] same for all hosts.
>
> So not to duplicate host hostname in fixed-address.
>
> As you can see host declaration composed of identical blocks.
>
>
>
>
> 2016-05-24 13:31 GMT+03:00 Simon Hobson <dhcp1 at thehobsons.co.uk <mailto:dhcp1 at thehobsons.co.uk>>:
>
>     Vladimir Skubriev <skubriev at cvisionlab.com <mailto:skubriev at cvisionlab.com>> wrote:
>
>     > Now I used following config strings:
>     >
>     > ...
>     >   host callisto {
>     >     hardware ethernet 00:25:33:44:80:55;
>     >     fixed-address callisto;
>     >   }
>     > ...
>     >
>     > Is there a way not to be repeated in fixed-address and declaring only host-decl-names in host [hostname] directive?
>
>     Sorry, I don't understand the question.
>
>     > Something like this:
>     >
>     > ...
>     >   host callisto {
>     >     hardware ethernet 00:25:33:44:80:55;
>     >     fixed-address [something];
>     >   }
>     >
>     >   host earth {
>     >     hardware ethernet 14:99:88:71:77;
>     >     fixed-address [something];
>     >   }
>     > ...
>
>     That will work, assuming that [something] represents either an IP address, or something that
>     resolves (via DNS lookup) to an IP address.
>     _______________________________________________
>     dhcp-users mailing list
>     dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>     https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
>
> --
> Faithfully yours,
>
> CVision Lab System Administrator
> Vladimir Skubriev
>
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>

-- 
Dave Calafrancesco


More information about the dhcp-users mailing list