dhcp relay doesn't work?

Glenn Satchell glenn.satchell at uniq.com.au
Wed Apr 9 04:53:43 UTC 2014


You also need to listen on the eth0 interface for replies from the dhcp
server:

  dhcrelay -i eth0 -i br-lan 192.168.2.1

Default behaviour is to listen on all interfaces, so probably this will
work too:

  dhcrelay 192.168.2.1

regards,
-glenn

On Wed, April 9, 2014 2:30 pm, Amit wrote:
> Hi,
>
> Since You are having router to be configured as dhcp relay, Why are you
> running dhcrelay command on DHCP server.
>
> First of all configure your dhcp server with the IP pool and run the
> server,
> then on the router configure dhcp relay with "ip helper" command on the
> client facing interface of router(check router manual for that) i.e. eth1
> according to your configuration.
>
>
> --
> Thanks & Regards
>
> Amit Kumar
> Scientific Officer
> Operation and Routing Group
> M/O Communication and IT, NIC, A- Block, CGO Complex, New Delhi
> Ph. +911122900332, NKN VoIP:7332
> Mob. +919910611621
>
>
>
>
> Date: Mon, 7 Apr 2014 16:58:55 +0800
> From: "constant" <running910 at foxmail.com>
> To: "dhcp-users" <dhcp-users at lists.isc.org>
> Subject: dhcp relay doesn't work?please help
> Message-ID: <tencent_530888D070BA98DA0E3600A4 at qq.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi all:
>            I'm sorry my English is not good,please be patient.thank you!!
> I'm doing a
>
> project based on openwrt (SOC: Atheros ar9341) .As the following chart
> shows, I
>
>  need a router as a dhcp relay agent,so i use isc-dhcp-relay
>
>
>
> dhcp server <------------> eth0 (router) eth1 <------------>dhcp client
>
>
>
> dhcp server ip:192.168.2.1	       a normal dhcp server
> router eth0 ip:192.168.2.101         eth0 get the ip from dhcp server
> router eth1 ip:192.168.1.1             static ip,eth1 is directed
> connected
> to lan,the bridged interface name is br-lan
>
> I enter the command:
>
> 	dhcrelay -i br-lan 192.168.2.1
>
> However, even though I tried two available dhcp server, the client can not
> obtain an IP address.
>
> for dhcp server 1,wireshark shows
>
> 	1) router forwards dhcp discover from client to server
> (unicast)
>
> 	2) server replies dhcp offer to router
> (broadcast)
>
> 	3) router doesn't send anything to client
>
> for dhcp server 2,wireshark shows
>
> 	1) router forwards dhcp discover from client to server
> (unicast)
>
> 	2)server replies nothing.
>
> Does anyone have any suggestions? Thank you very much!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <https://lists.isc.org/pipermail/dhcp-users/attachments/20140407/95587045/at
> tachment.html>
>
> ------------------------------
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
> End of dhcp-users Digest, Vol 66, Issue 15
> ******************************************
>
> _______________________________________________
> 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