Error in relay while using ISC DHCP code????

Glenn Satchell glenn.satchell at uniq.com.au
Wed Dec 14 12:47:17 UTC 2011


Hi Ameen

You said;

SERVER IP address is 10.5.5.0
RELAY IP address is 20.5.1.1
#./dhcrelay -4 –d -i ixp0 10.5.5.0 –i ixp1 20.5.1.1

but 20.5.1.1 is the relay's ip address, so you shouldn't forward packets 
from the relay to itself?

Try this instead - the default for dhcrelay is to use all interfaces and 
that's usually what you want. The last parameter is the IP address or 
hostname of the dhcpd server. There is no requirement to put the ip 
address of the relay there too.

./dhcrelay -4 -d 10.5.5.0

You also need to add a subnet definition to dhcpd.conf for 20.5.1.0 
subnet if you don't have one already. No other special configuration is 
needed in dhcpd.conf.

Please do not post attachments inside Word documents. Instead attach the 
dhcpd.conf file as a text attachment, or include it inline in the body 
of the email.

regards,
-glenn

On 12/14/11 23:23, ameen.shajahan at wipro.com wrote:
> Hi all ,
>
> I am using ISC DHCP-4.2.3 code and testing the DHCPV4 server and relay.
>
> Also I am using the default conf file.
>
> Client and server communication happened successfully by sending DHCP
> discover , offer ,Request ,Ack messages.
>
> But in relay there is some problem.
>
> SERVER IP address is 10.5.5.0
>
> RELAY IP address is 20.5.1.1
>
> I want to know whether I should use the same conf file or I should make
> some changes in it.
>
> *_In server side_*
>
> # ./dhcpd -4 -d -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases ixp0
>
> Internet Systems Consortium DHCP Server 4.2.3
>
> Copyright 2004-2011 Internet Systems Consortium.
>
> All rights reserved.
>
> For info, please visit https://www.isc.org/software/dhcp/
>
> Wrote 0 class decls to leases file.
>
> Wrote 0 deleted host decls to leases file.
>
> Wrote 0 new dynamic host decls to leases file.
>
> Wrote 2 leases to leases file.
>
> Listening on LPF/ixp0/00:60:43:60:ca:99/10.5.5.0/27
>
> Sending on LPF/ixp0/00:60:43:60:ca:99/10.5.5.0/27
>
> Sending on Socket/fallback/fallback-net
>
> *_In Relay side_*
>
> #./dhcrelay -4 –d -i ixp0 10.5.5.0 –i ixp1 20.5.1.1
>
> Internet Systems Consortium DHCP Server 4.2.3
>
> Copyright 2004-2011 Internet Systems Consortium.
>
> All rights reserved.
>
> For info, please visit https://www.isc.org/software/dhcp/
>
> Listening on LPF/ixp0/00:60:43:60:ca:99/10.5.5.0/27
>
> Sending on LPF/ixp0/00:60:43:60:ca:99/10.5.5.0/27
>
> Listening on LPF/ixp1/00:60:43:60:ca:99/20.5.1.1/27
>
> Sending on LPF/ixp1/00:60:43:60:ca:99/20.5.1.1/27
>
> Sending on Socket/fallback/fallback-net
>
> After that its sending BOOTP REQUEST to 20.5.1.1
>
> After that its sending BOOTP REQUEST to 10.5.5.0
>
> **
>
> **
>
> **
>
> *_In Client side_*
>
> C:\Documents and Settings\admin>ipconfig /renew
>
> Windows IP Configuration
>
> **
>
> *An error occurred while renewing interface Remote : unable to contact
> your DHCP*
>
> *server. Request has timed out.*
>
> C:\Documents and Settings\admin>
>
> I*have attached the conf file. Please have a look.*
>
> My problem is how to run the relay using ISC DHCP
>
> What should I change?
>
> Where would be the problem actually??
>
> Regards,
>
> Ameen S
>



More information about the dhcp-users mailing list