AW: Problems with destination IP of DHCP Offer Packages

Martin Krellmann martin2002 at web.de
Sat Jul 11 23:33:26 UTC 2009


Hi.

I am starting the server manually for debugging purposes:
/usr/sbin/dhcpd -d -cf /etc/dhcpd.conf -lf /var/lib/dhcp/db/dhcpd.leases -tf
/var/log/dhcpd.trace.log ipsec0

It generate the following output:

Internet Systems Consortium DHCP Server 4.1.0
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
WARNING: Overwriting trace file "/var/log/dhcpd.trace.log"

Wrote 0 class decls to leases file.
Wrote 0 leases to leases file.
Multiple interfaces match the same subnet: eth0 eth2
Multiple interfaces match the same shared network: eth0 eth2
Multiple interfaces match the same subnet: eth0 eth1
Multiple interfaces match the same shared network: eth0 eth1
Multiple interfaces match the same subnet: eth0 ipsec0
Multiple interfaces match the same shared network: eth0 ipsec0
Listening on LPF/ipsec0/00:0a:e6:26:28:f8/0.0.0.0/0
Sending on   LPF/ipsec0/00:0a:e6:26:28:f8/0.0.0.0/0
Sending on   Socket/fallback/fallback-net
omapi_set_value (state, 1)
 ==> invalid argument

With tcpdump on ipsec0 I can see the incoming dhcp request and the outgoing
offer to the destination ip that should be assigned.

Greets,
Martin.

-----Ursprüngliche Nachricht-----
Von: dhcp-users-bounces at lists.isc.org
[mailto:dhcp-users-bounces at lists.isc.org] Im Auftrag von Glenn Satchell
Gesendet: Samstag, 11. Juli 2009 19:27
An: dhcp-users at lists.isc.org
Betreff: Re: Problems with destination IP of DHCP Offer Packages


>Date: Sat, 11 Jul 2009 17:59:41 +0200
>From: "Martin Krellmann" <martin2002 at web.de>
>
> Hi.
> 
>  
> 
> I am running dhcp server 4.1.0. It is listening directly on interface
> "ipsec0" which is the interface of an ipsec tunnel. I need to send DHCP
> offers out over this interface.
> 
> I am not using an relay agent because openswan, relay agent and dhcp
server
> are then running on the same host and I could not get the internal routing
> from the relay agent to the server working.
> 
>  
> 
> Let's say remote clients should get an ip address out of the subnet
> "10.0.1.0/24". The ipsec server adds an route to the destination
> 255.255.255.255 on interface "ipsec0" so broadcast packages should be
> transmitted over the tunnel. The problem is that the dhcp server does not
> broadcast the offers but sends them to the IP that should be assigned to
the
> client. So the package will never be routed over the ipsec tunnel and the
> client gets no ip address.
> 
> Is this a configuration problem or is this a default behavior?
> 
>  
> 
> Greets,
> 
> Martin.

when dhcpd start up it there a line indicating that it is listening on
interface ipsec0? Something like one of these (this is on Solaris, but
most of the line should be close to yours) :

Listening on DLPI/hme0/08:00:20:b0:eb:e3/192.168.14.0/24
Sending on   DLPI/hme0/08:00:20:b0:eb:e3/192.168.14.0/24
Sending on   Socket/fallback/fallback-net

regards,
-glenn

_______________________________________________
dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users






More information about the dhcp-users mailing list