Need help with setting up DHCP server service

Dario Alcocer dalcocer at home.com
Thu Nov 11 01:32:26 PST 1999


>>>>> "Sang" == Sang Y Yum <sang at yumnet.dyndns.org> writes:

    Sang> Well, I'm not even getting any debugging messages when I
    Sang> start dhcpd with debugging option. Looks as if the clients
    Sang> doen't even request IP address, or the server doesn't see
    Sang> the request.

    Sang> Another odd thing I noticed is that, when dhcpd is running,
    Sang> dhcpcd fails to renew the lease and this error message is
    Sang> logged on /var/log/syslog

    Sang> Nov 10 01:21:36 pikatsu dhcpcd[120]: sendto (rebinding):
    Sang> Operation not permitted Weird....

Sang,

Last year, I spent all day trying to get a IPMASQ server on RH 5.1
working at my daughter's school (I was in between contracting jobs),
and during this process, I rebuilt the dhcpd with debugging, fired up
gdb and ran the server in non-daemon mode.  What I found was this:
when the packet was received, the information regarding which
interface the packet came in from was dropped on the floor, so when it 
came time to send the request, it was sending a packet destined for
the local private LAN (192.168.0.0) to the external interface.  Of
course, this would fail, but instead of the error you got, I got
something like "host unreachable."

Somebody else on the list mentioned something about dual-homed
machines not supporting DHCP unless SOBINDTODEVICE (or some-such
setsockopt() capability) is enabled on the kernel you're working with.
Of course, the other option is to get another CB machine on the LAN to
serve up DHCP, expect this machine will contain only one ethernet
interface, thereby avoiding the problem of running DHCP on a
multi-homed host.

On the other hand, If you're open to a non-Linux solution, I have a
FreeBSD floppy image, complete with terse, but complete, instructions
on how to get a natd firewall running on a CB 486 machine.  Once up,
the machine will serve up DHCP, in addition to being a IP router and
firewall.  (In fact, if anyone else is interested, I might be able to
come by to an InstallFest and help people set these up.)

-- 
Dario Alcocer // dalcocer at home.com




More information about the KPLUG-List mailing list