Client classification based on device name. It is possible?

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Jul 6 11:43:05 UTC 2012


=?UTF-8?B?0JDQu9C10LrRgdC10Lkg0J/RgNC+0LrQvtC/0YfRg9C6?= wrote:

>I have DHCP server installed on machine with several network interfaces.
>I trying to assign dynamic addresses to clients from several pools (each
>in separate shared network). But when server receives requests from
>clients, he assigns them addresses from first free pool instead of pool
>corresponding the subnet of client's device. As I understand, I must use
>classes for choosing correct pool. But I can't understand how to
>describe class based on network device, which request came from. It is
>possible at all?

You need to clarify your setup a bit - I can interpret your 
description two ways. BTW - it's not a problem with your English, 
that's fine.

Do you have something like this :

eth0 192.168.1.1/24
eth1 192.168.2.1/24
eth2 192.168.3.1/24

and

shared-subnet ...
   subnet 192.168.1.0 ...
   subnet 192.168.2.0 ...
   subnet 192.168.3.0 ...
}

and when you connect a client to the eth0 network, it gets an address 
from the 192.168.2.0/24 subnet ?



Or do you have something like this :

eth0 192.168.1.1/24 eth0:1 192.168.2.1/24
eth1 192.168.3.1/24 eth1:1 192.168.2.1/24
eth2 192.168.5.1/24 eth2:1 192.168.2.1/24

and

shared-subnet ...
   subnet 192.168.1.0 ...
   subnet 192.168.2.0 ...
}
shared-subnet ...
   subnet 192.168.3.0 ...
   subnet 192.168.4.0 ...
}
shared-subnet ...
   subnet 192.168.5.0 ...
   subnet 192.168.6.0 ...
}

And you need to put some devices in (eg) 192.168.1.0 and some in 192.168.2.0 ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.


More information about the dhcp-users mailing list