l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Jun 22 13:15

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] 2 dhcp servers, one box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] 2 dhcp servers, one box


Thanks, I figured it was something like that.  Moments ago I realized 
that my main problem was that I hadn't looked at the dhcpd man page 
closely enough.  I should have been thinking about one server, two 
interfaces, whereas I had been thinking of a different server for each 
interface.  Once I figured out that I needed to run the daemon with 
"dhcpd eth1 eth2" rather than "dhcpd eth1; dhcpd eth2", everything 


On Thursday, June 20, 2002, at 08:46 PM, Doug Huckaba wrote:

> I think you can configure dhcp to give out of 2 different address ranges
> based on the network the request came in on. Check out the man page for
> dhcpd.conf.
> I just checked and I'm running isc's dhcpd
> hope it helps...
> -doug
> Here's the syntax (base on my dhcpd.conf and your information):
> server-identifier houston;
> default-lease-time 86400;
> max-lease-time 172800;
> option domain-name-servers;
> option domain-name	"mrdoug.com";
> option subnet-mask;
> subnet netmask{
> 	range;
> 	option broadcast-address;
> 	option routers		$ip_of_the_nic_for_this_network
> }
> subnet netmask{
> 	range;
> 	option broadcast-address;
> 	option routers		$ip_of_the_nic_for_this_network
> }
> --
> Today, Matthew Holland spewed forth:
>> Does anyone have any experience running multiple dhcp servers out of 
>> one
>> box?  Allow me to clarify... I have a box with three network cards: 
>> eth0
>> is connected to the DSL modem, eth1 to a network
>> (MASQed), and eth2 will be connected to a network (which
>> I also intend to MASQ).  There are various cabling considerations that
>> have made this arrangement seem sensible.  I'm running dhcpd on eth1,
>> because there are as many laptops in the house as desktops.  The
>> potentially tricky part is that I installed eth2 so that I can plug my
>> laptop into it when I'm in the same room as the router.  This makes it
>> appealing to run dhcpd on eth2 as well, so that I don't have to do any
>> funny voodoo every time I plug the laptop into a different network.
>> That said, there may be some voodoo to do concerning the configuration
>> of dhcp.  There's no issue of overlapping blocks of addresses since the
>> networks are different.  The question is, do I need multiple copies of
>> dhcpd.conf and dhcpd.leases, or can two daemons share the same 
>> files?  I
>> imagine it's possible that both subnets could be defined in the same
>> dhcpd.conf, since each instance of dhcpd should know which network it's
>> on.  But then again, it may not work that way.
>> Any other gotchas that I should be aware of?  In case it matters, the
>> machine is running Gentoo Linux.
>> Thanks,
>> Matt
>> _______________________________________________
>> vox-tech mailing list
>> vox-tech@lists.lugod.org
>> http://lists.lugod.org/mailman/listinfo/vox-tech
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.