two interfaces, same range

Glenn Satchell Glenn.Satchell at
Wed Jul 4 05:52:14 UTC 2007

>X-Greylist: delayed 1016 seconds by postgrey-1.27 at; Tue, 03 Jul 
2007 22:22:01 UTC
>Date: Tue, 03 Jul 2007 19:04:57 -0300
>From: mateus <mateus at>
>To: dhcp-users at
>Subject: two interfaces, same range
>X-archive-position: 4008
>X-ecartis-version: Ecartis v1.0.0
>X-original-sender: mateus at
>List-software: Ecartis version 1.0.0
>X-List-ID: <>
>X-list: dhcp-users
>i have a server with two interfaces, each interface is conected with a 
>different switch, i need to do this:
>eth0 - range
>eth1 - range
>how can i do this? im using debian 4
A little more information is required to understand your requirements.
Could you provide the IP address and subnet mask for each interface
(eth0 and eth1), and the network addresses on each interface. And a
brief description of how the addresses are arranged on the different
switches and subnets.

As a guess, are both interfaces on the server and the switches part of
the same subnet? You want to assign addresses from a different range
depending on which interface the request came in on? If this is not the
case please provide the information as described above and ignore the
rest of the message!

If this is the case, then you cannot really do what that. A dhcp client
sends a broadcast request (called a DHCPDISCOVER) which will be seen by
both interfaces. THe dhcp server will send a response (called a
DHCPOFFER) for each request. The dhcp server doesn't really know or
care which interface the DHCPDISCOVER came in on, so it can't
differentiate the requests that way.

So you can create a single subnet definition to handle the whole range,

subnet netmask {
  <other options>

and the addresses will be selected from each range.


More information about the dhcp-users mailing list