Giving IP address from specific subnet depending on MAC address

Randall C Grimshaw rgrimsha at syr.edu
Wed Jul 1 14:19:40 UTC 2009


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



More information about the dhcp-users mailing list