Giving IP address from specific subnet depending on MAC address

Glenn Satchell Glenn.Satchell at uniq.com.au
Wed Jul 1 16:18:27 UTC 2009


In dhcpd.conf man page there is an example using sub-classes (search
for SUBCLASSES).

Create two classes - one will be allowed in each pool.

Or you could create a single class and allow it in the first pool and
deny it in the second pool.

regards,
-glenn

>From: Randall C Grimshaw <rgrimsha at syr.edu>
>To: "dhcp-users at lists.isc.org" <dhcp-users at lists.isc.org>
>Date: Wed, 1 Jul 2009 10:19:40 -0400
>Subject: RE: Giving IP address from specific subnet depending on MAC address
>
>If you are managing the hosts, and generating host declarations, but don't want 
to assign static addresses.... I wonder if you could assign group memberships 
that would be usable by allow statements associated with the range.
>
>Randy
>
>-----Original Message-----
>From: dhcp-users-bounces at lists.isc.org 
[mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Frederik
>Sent: Wednesday, July 01, 2009 10:08 AM
>To: dhcp-users at lists.isc.org
>Subject: Giving IP address from specific subnet depending on MAC address
>
>I've got a DHCP server which is in a shared network consisting of two
>subnets, let's say 192.168.0.0/24 and 192.168.1.0/24. So each of these
>subnets is defined in dhcpd.conf within a shared-network, and each of
>them has a pool defining a range of IP addresses.
>
>Now I would like to put a part of all clients in subnet
>192.168.0.0/24, and another part in subnet 192.168.1.0/24, depending
>on their mac address. Unfortunately, as the host declarations are
>always global, it does not help putting them within one of the subnet
>definitions to let it select the right subnet.
>
>What would be the right way to get the wanted result?
>-- 
>Frederik
>_______________________________________________
>dhcp-users mailing list
>dhcp-users at lists.isc.org
>https://lists.isc.org/mailman/listinfo/dhcp-users
>_______________________________________________
>dhcp-users mailing list
>dhcp-users at lists.isc.org
>https://lists.isc.org/mailman/listinfo/dhcp-users




More information about the dhcp-users mailing list