Andrew Falanga <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> I have a RedHat 9 box that I have to NICs installed. I only want one of
> the NICs to serve up IP addresses dynamically using dhcpd. I read in
> the manual page for dhcpd that to accomplish this, just list the
> interface on the command line, which I did after editing the appropriate
> script.
You may be reading into the man page what you want to hear -- I've
done that many times when reading the rather terse entries ;-)
It seems to suggest what you mean, but all it really says is that you
_should_ do this on systems where dhcpd would have trouble discerning
that no broadcasts will arrive on the interface. It doesn't actually
say that dhcpd will not "double check" behind your back, so to speak.
> However, the dhcpd port shows as open (using nmap) on both interfaces
> (that is, UDP port scanning both ip addresses of the respective NICs).
> Is this the expected behavior?
>
> Andrew R. Falanga (a non-HP employee)
Not familiar with the dhcpd code or ever tried to do what I think
you're trying. You expect dhcp client requests to come in from only
one of the two nics -- right?
You don't want to listen on the other nic, as you
a) don't have legit dhcp requests incoming from there anyway and
b) you sure don't want to hand out a lease if a request does manage to
come in from there.
Sure would be nice to be able to tell dhcpd _not_ to listen on that
second nic. Maybe someone familar with using dhcpd in such a scenario
will chime in -- not that up on the docs for the daemon, myself.
Did you try the web site for docs that might help:
http://www.isc.org/
A FW seems heavy handed if one is not already running on the server.
Policy routing could do it, I'm pretty sure, but might be tricky to
set up correctly. Might even require TOS inspection. I'm trying
desparately (and successfully, I hope) to let you know I've not tried
this kind of port/application filtering via the ip tools before -- my
uses have been much more prosaic.
You can always look for ideas in the lartc howto:
http://www.lartc.org/howto/
and maybe
Guide to IP Layer Network Administration with Linux
http://linux-ip.net/
or
http://www.policyrouting.org/PolicyR...NLINE/TOC.html
good luck,
prg
email above disabled