[Gllug] dhcpd Question

David Godfrey dave at lists.deltass.co.uk
Wed Dec 29 14:02:19 UTC 2004


John Winters wrote:

> On Wed, 2004-12-29 at 09:31 +0000, David Godfrey wrote:
>
> > No. Look at the subnet option in man dhcpd.conf. This allows dhcpd to
> > identify which interface the request came in on.
> 
> Can you be a bit more specific?  This is something I've tried to do in
> the past but couldn't find any documentation on how.  The dhcpd.conf
> manual page doesn't (AFAICS) tell you how to bind a subnet declaration
> to a particular network interface.

Well, it's a few years since I played with a multi-homed DHCP server,
but I am pretty sure it went something like this:-

For eth0 with address 10.1.1.1 and eth1 on 10.1.2.1:

subnet 10.1.1.0 netmask 255.255.255.0 {
	range 10.1.1.21 10.1.1.25;
	option broadcast-address 10.1.1.255;
	option routers 10.1.1.3;
	option domain-name-servers 10.1.1.3, 10.1.1.1;
}

subnet 10.1.2.0 netmask 255.255.255.0 {
	range 10.1.2.21 10.1.2.25;
	option broadcast-address 10.1.2.255;
	option routers 10.1.2.3;
	option domain-name-servers 10.1.2.3, 10.1.2.1;
}

I also used a similar stanza to serve 10.1.3.0/24 via dhcrelay and it
all worked fine.

HTH

Regards
-- 
Dave Godfrey
dave at deltass.co.uk
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list