Doubt in ISC DHCP Relay Concept ???

Glenn Satchell glenn.satchell at uniq.com.au
Thu Dec 15 15:32:34 UTC 2011


Congratulations Ameen - that looks like it is working just fine.

With regards to the message about "authoritative" I suggest you read the 
dhcpd.conf man page and search for that term for an explanation.

It looks like you are running out of the build directory, so if "man 
dhcpd.conf" doesn't work then the man page in the source distribution 
can be read using:

nroff -man ../server/dhcpd.conf.5 | less

Here is part of it:

        Network  administrators  setting  up  authoritative   DHCP
        servers  for their networks should always write authorita-
        tive; at the top of their configuration file  to  indicate
        that  the DHCP server should send DHCPNAK messages to mis-
        configured clients.   If this is not done, clients will be
        unable  to get a correct IP address after changing subnets
        until their old lease has expired, which could take  quite
        a long time.

I don't know why the sample config file (which is shipped by the linux 
distro rather than ISC) continues to use dynamic-bootp ranges. Normally 
you want to use dhcp rather than bootp, so you ranges should just say 
"range" and the ip addresses without the word "dynamic-bootp".

regards,
-glenn

On 12/16/11 00:47, ameen.shajahan at wipro.com wrote:
> Hi all,
>
> I executed the ISC DHCP v4 relay. Finally client get the IP address is
> 10.0.30.
>
> Is this correct???
>
> Server------------eth0--------------relay----------------------eth1-----------------------------Client
>
> 192.168.0.1 192.168.0.8 10.0.0.1
>
> I*have added the below subnets in the conf file. Please have a look.*
>
> **
>
> subnet 192.168.0.0 netmask 255.255.255.0 {
>
> option subnet-mask 255.255.255.0;
>
> range dynamic-bootp 192.168.0.30 192.168.0.49;
>
> option domain-name "test.com";
>
> default-lease-time 86400;
>
> max-lease-time 86400;
>
> min-lease-time 86400;
>
> }
>
> subnet 10.0.0.0 netmask 255.255.255.0 {
>
>
>
>       option routers 10.0.0.1;
>
> option subnet-mask 255.255.255.0;
>
> range dynamic-bootp 10.0.0.30 10.0.0.49;
>
> }
>
> __
>
> _In Client Side_
>
> C:\Documents and Settings\admin>ipconfig /renew
>
> Windows IP Configuration
>
> Ethernet adapter Remote:
>
> Connection-specific DNS Suffix . : example.org
>
> IP Address. . . . . . . . . . . . : 10.0.0.30
>
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
>
> Default Gateway . . . . . . . . . : 10.0.0.1
>
> Ethernet adapter Upstream-140:
>
> Connection-specific DNS Suffix . :
>
> IP Address. . . . . . . . . . . . : 10.140.185.251
>
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
>
> Default Gateway . . . . . . . . . : 10.140.185.232
>
> Ethernet adapter Back Bone - 145:
>
> Connection-specific DNS Suffix . :
>
> IP Address. . . . . . . . . . . . : 10.145.185.191
>
> Subnet Mask . . . . . . . . . . . : 255.255.255.0
>
> Default Gateway . . . . . . . . . : 10.145.185.1
>
> _In Server side_
>
> # ./dhcpd -4 -d -f -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 3 leases to leases file.
>
> Listening on LPF/ixp0/00:60:43:60:ca:99/192.168.0.0/24
>
> Sending on LPF/ixp0/00:60:43:60:ca:99/192.168.0.0/24
>
> Sending on Socket/fallback/fallback-net
>
> DHCPDISCOVER from 00:40:05:1e:07:0f (D-158740) via 10.0.0.1
>
> DHCPOFFER on 10.0.0.30 to 00:40:05:1e:07:0f (D-158740) via 10.0.0.1
>
> DHCPREQUEST for 10.0.0.30 (192.168.0.1) from 00:40:05:1e:07:0f
> (D-158740) via 10
>
> .0.0.1
>
> DHCPACK on 10.0.0.30 to 00:40:05:1e:07:0f (D-158740) via 10.0.0.1
>
> DHCPINFORM from 10.0.0.30 via 10.0.0.1: not authoritative for subnet
> 10.0.0.0
>
> If this DHCP server is authoritative for that subnet,
>
> please write an `authoritative;' directive either in the
>
> subnet declaration or in some scope that encloses the
>
> subnet declaration - for example, write it at the top
>
> of the dhcpd.conf file.
>
> DHCPINFORM from 10.0.0.30 via 10.0.0.1: not authoritative for subnet
> 10.0.0.0
>
> _In Relay side_
>
> # ./dhcrelay -4 -d -i ixp1 -i ixp0 192.168.0.1
>
> Internet Systems Consortium DHCP Relay Agent 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:80:41:92
>
> Sending on LPF/ixp0/00:60:43:80:41:92
>
> Listening on LPF/ixp1/00:60:43:80:41:93
>
> Sending on LPF/ixp1/00:60:43:80:41:93
>
> Sending on Socket/fallback
>
> Forwarded BOOTREQUEST for 00:40:05:1e:07:0f to 192.168.0.1
>
> Forwarded BOOTREPLY for 00:40:05:1e:07:0f to 10.0.0.30
>
> Forwarded BOOTREQUEST for 00:40:05:1e:07:0f to 192.168.0.1
>
> Forwarded BOOTREPLY for 00:40:05:1e:07:0f to 10.0.0.30
>
> Forwarded BOOTREQUEST for 00:40:05:1e:07:0f to 192.168.0.1
>
> Forwarded BOOTREQUEST for 00:40:05:1e:07:0f to 192.168.0.1
>
> Regards,
>
> Ameen S
>



More information about the dhcp-users mailing list