relay query doubt??

Simon Hobson dhcp1 at thehobsons.co.uk
Fri Jul 6 07:02:03 UTC 2012


ameen.shajahan at wipro.com wrote:

>Set up:
>
>Server-------------------Relay------------------Client
>
>Conf file details:
>
>option domain-name-servers ns1.example.org,ns2.example.org;
>default-lease-time 600;
>authoritative;
>max-lease-time 7200;
>subnet 10.140.185.0 netmask 255.255.255.0{
>    range 10.140.185.180 10.140.185.210;
>    }
>
>subnet 20.20.20.0 netmask 255.255.255.0{
>   range 20.20.20.73 20.20.20.100;
>   option routers 20.20.20.75;
>   }
>
>
>In server side:  (server IP(eth0) : 10.140.185.183)
>./dhcpd -4 -d -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases eth0
>
>Output in server side:
>DHCPDISCOVER from 00:10:5a:6e:94:01 (wipro-e1b57c11f) via 20.20.20.75
>DHCPOFFER on 20.20.20.73 to 00:10:5a:6e:94:01 (wipro-e1b57c11f) via 
>20.20.20.75
>DHCPDISCOVER from 00:10:5a:6e:94:01 (wipro-e1b57c11f) via 20.20.20.75
>DHCPOFFER on 20.20.20.73 to 00:10:5a:6e:94:01 (wipro-e1b57c11f) via 
>20.20.20.75
>DHCPDISCOVER from 00:10:5a:6e:94:01 (wipro-e1b57c11f) via 20.20.20.75
>
>
>In relay side : (relay IP(eth0) : 20.20.20.75)
>./dhcrelay -4 -d 44.44.4.1    (Is this enough to run relay, no need 
>of interfaces ??)
>
>Output in relay side:
>Forwarded BOOTREQUEST for 00:10:5a:6e:94:01 to 10.140.185.183
>Forwarded BOOTREQUEST for 00:10:5a:6e:94:01 to 10.140.185.183
>Forwarded BOOTREQUEST for 00:10:5a:6e:94:01 to 10.140.185.183

That is most definitely not correct operation.

Can you confirm what OS and software versions you are running, and 
where they came from (ie did you compile your own, or install from 
distribution provided packages) ?

Also, lpease confirm that what you've posted here is the **ACTUAL** 
config your used. For example, there is an inconsistency between :
>./dhcrelay -4 -d 44.44.4.1
and
>Forwarded BOOTREQUEST for 00:10:5a:6e:94:01 to 10.140.185.183

Also, can you confirm that you do *NOT* have a shared-network 
statement in your server config.


BTW - yes that is sufficient to run the relay agent. From the man page :
>If no interfaces are specified on the command line, dhcrelay will 
>identify all network interfaces, eliminating non-broadcast 
>interfaces if possible, and attempt to listen on all of them.


-- 
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