So if I have a
> subnet 130.205.35.0 netmask 255.255.255.0 {
> range 130.205.35.48 130.205.35.60;
> option routers 130.205.35.1;
> option subnet-mask 255.255.255.0;
> option broadcast-address 130.205.35.255;
> default-lease-time 600;
> max-lease-time 7200;
> }
for each interface it all looks after itself?
Cool
Thanks
Kevin
----- Original Message -----
From: Michael H. Warfield <[EMAIL PROTECTED]>
To: Kevin Hancock <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, July 11, 2000 2:39 PM
Subject: Re: DHCPD Gurus ?
> On Tue, Jul 11, 2000 at 02:19:28PM +0930, Kevin Hancock wrote:
> > Hi Guys
>
> > I am thiinking about setting up a DHCP server on a Redhat 6.1 box here
with
> > 3 network cards. What I want to achieve is a router that will
automatically
> > allocate IP addresses to 3 subnets.
>
> > The DHCP Howto suggests I can only have one config file for DHCPD and no
> > suggestion I can allocate to different subnets. It seems I am going to
be
> > giving the same IP range to all 3 netowrk interfaces.
>
> > Can this be done and if so anyone have any pointers to where I can look
into
> > this?
>
> You're trying too hard. DHCPD is only going to give out leases
> that are appropriate for the subnets on each interface. You don't have
> to do anything special. If you have a network interface with a particular
> subnet assigned to it, DHCPD will ignore any range assignments that do
> not fit that interface.
>
> Examples:
>
> Interfaces:
>
> eth0: 130.205.35.1 : 255.255.255.0
> eth1: 130.205.36.1 : 255.255.255.0
> eth2: 130.205.37.1 : 255.255.255.0
>
> dhcpd.conf:
>
> subnet 130.205.35.0 netmask 255.255.255.0 {
> range 130.205.35.48 130.205.35.60;
> option routers 130.205.35.1;
> option subnet-mask 255.255.255.0;
> option broadcast-address 130.205.35.255;
> default-lease-time 600;
> max-lease-time 7200;
> }
>
> Any requests coming in from eth0 will get fufilled from the above
> range. Any request from eth1 or eth2 will ignore that range because it's
> inappropriate for those interfaces. The later two interfaces don't fall
> in the range of that subnet.
>
> > Thanks
>
> Mike
> --
> Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
> (The Mad Wizard) | (770) 331-2437 |
http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of all
> PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.