Send dhcp-users mailing list submissions to
        dhcp-users@lists.isc.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.isc.org/mailman/listinfo/dhcp-users
or, via email, send a message with subject or body 'help' to
        dhcp-users-requ...@lists.isc.org

You can reach the person managing the list at
        dhcp-users-ow...@lists.isc.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of dhcp-users digest..."


Today's Topics:

   1. Re: To have various IP ranges in the same subnet and assign
      the IP Address depending of the device type that sends the
      request. (Simon Hobson)


----------------------------------------------------------------------

Message: 1
Date: Mon, 5 Aug 2019 18:35:33 +0100
From: Simon Hobson <dh...@thehobsons.co.uk>
To: Users of ISC DHCP <dhcp-users@lists.isc.org>
Subject: Re: To have various IP ranges in the same subnet and assign
        the IP Address depending of the device type that sends the request.
Message-ID: <5b4b5489-3138-45c4-8629-2af1bc1f7...@thehobsons.co.uk>
Content-Type: text/plain; charset=utf-8

Juan Antonio Garc?a Moreno <jagar...@emergya.com> wrote:

> I relly have some hosts declarations, but I don't have put these in the post.

Ah yes, about that ... see below !

> subnet 10.53.0.0 netmask 255.255.0.0 {
> 
>   default-lease-time 86400;
>   max-lease-time 172800;
> 
>   option broadcast-address 10.53.255.255;
>   option routers 10.53.1.1;
> 
>   # Unknown Clients Range.
>   pool {
>     deny members of "smartphones";
>     range 10.53.33.1 10.53.35.254;
>   }
> 
>   # Smartphones Range.
>   pool {
>     allow members of "smartphones";
>     range 10.53.10.2 10.53.11.254;
>   }
> 
>   host PC-01 {
>     hardware ethernet ff:ff:ff:ff:ff:01;
>     fixed-address 10.53.100.5;
>   }
> 
>   host PC-02 {
>     hardware ethernet ff:ff:ff:ff:ff:02;
>     fixed-address 10.53.100.6;
>   }
> 
> }

That is another common mistake. Host declarations are always global in scope 
even though you might think that putting them inside a subnet declaration would 
tie them to that subnet. So even though declared inside one subnet, they will 
be "known" in any subnet - which in itself can cause considerable confusion.
But what really makes life "interesting" (see 
https://en.wikipedia.org/wiki/May_you_live_in_interesting_times) is that should 
a host be connected to a different network, it will inherit option values from 
the subnet where it is defined. Thus you find yourself with a client that's 
been given an address by DHCP, but the gateway address it's been given is in a 
completely different subnet !


> And too, howto fill a text file with the "vendor-class-identifier" of the 
> smartphones and include in the DHCP Server config to match the smartphones 
> devices too.

It's a simple scripting exercise to take a text file containing one string per 
line, and build a config file snippet. You can then use an include statement to 
incorporate that config snippet into the daemon config.



------------------------------

Subject: Digest Footer

_______________________________________________
dhcp-users mailing list
dhcp-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users


------------------------------

End of dhcp-users Digest, Vol 130, Issue 5
******************************************

Reply via email to