On Sun, Mar 23, 2003 at 11:13:27AM -0500, Matt Neimeyer wrote:
> I'm trying to set up a small gentoo box as a router / dhcp server /
> internet gateway... So far so good but I'd like to be able to have the dhcp
> server give out ip's based on the NIC the request comes in on.
>
> So for example, if my eth3 is 10.10.3.1 I'd like all the addresses that are
> assigned from it to be from 10.10.3.2 on up.
>
> I'm thinking this would help later in debugging problems...
>
> On the other hand if I'm crazy and this is more effort than it's worth
> please let me know.
I'm not sure what you're asking. Do you mean that you want dhcpd to
notice your NIC's address, and use that address as the basis for
determining which addresses to hand out to clients? I think that would
be counter to the spirit of dhcpd's design. You might be able to
replace the init script with something that writes or selects a
dhcpd.conf based on your inside NIC's current address each time it's
about to start the daemon, but I don't think that dhcpd itself is going
to provide a way to do this on its own.
On the other hand, if your inside NIC doesn't change addresses very
often, it's simple to list a range of addresses in the config file. If
you have multiple NIC's which you want to serve dhcp requests, you could
run multiple dhcpd's each bound to a different interface (see the
synopsis at the top of the dhcpd manpage). And if you must run dhcpd on
your border system, you'll want to be sure to bind it to the right NIC
anyhow so that you aren't serving 10.* addresses out to the outside
world. ;)
HTH,
-mrj
--
Michael Jinks, IB # Enterprise Networks & Systems Administration # UofC
Reader! Think not that
technical information
ought not be called speech; -- Anonymous, "How to decrypt a DVD"
--
[EMAIL PROTECTED] mailing list