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

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Dec 14 13:00:24 UTC 2011


ameen.shajahan at wipro.com wrote:


>                 SERVER IP address is 10.5.5.0


>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

I'm sorry if this sounds condescending, but you have demonstrated 
convincingly that you lack the fundamental knowledge required to be 
running a network.

In your previous message, you had used an invalid IPv6 address for 
your server, in this request you have used invalid addresses for your 
server and relay - plus you appear to have used the same address for 
the server and relay.

10.5.5.0 is not a valid node address until you get up to a /23 subnet 
mask. For all smaller subnets, it is a network (subnet) address and 
is not usable for a device. With a /27 subnet, your usable IPs are 
10.5.5.1 through to 10.5.5.6. 10.5.5.0 is the subnet address, and 
10.5.5.7 is the broadcast address.

You cannot have two devices with the same address, so having both the 
relay and server on 10.5.5.0 will **not** work.

You really, **REALLY**, need to take a step back and learn the basics 
of IP addressing. Only when you have got that bit will you be able to 
configure network services without problems.

Also, looking at the man page, I believe your relay invocation is 
incorrect. AUIU, it's more likely to be "... -i ixp0 -i ixp1 
10.5.5.n" than what you have put. If I'm interpreting correctly, you 
have told the relay agent to listen on both interfaces, and to send 
the queries to itself - the address(es) listed on the command line 
should be of the server to which you are sending the requests, not 
the address(es) of local interfaces.
(I've replaced 10.5.5.0 with 10.5.5.n - put the correct server 
address in there)

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the dhcp-users mailing list