OpenWrt Forum Archive

Topic: How to set a DHCP Relay Agent

The content of this topic has been archived on 3 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

The package you must install is the "dhcrelay". The man page is here.

I will give my configuration as an example.

I have an client (Ubuntu), a AP (dhcp relay agent) and a dchp server.

Client(eht0)-----------(eth1)AP(eth0)-----------(eth0)Server

The server has the IP 192.168.2.102 and the AP 192.168.2.101 on the same subnet. The client and the AP do not have IP on the subnet connecting they.

So, the command is very simple.

dhcrelay -i eth1 -a 192.168.2.102

This will make the AP to listen his eth1 interface for a DHCP request and forward it to the server (192.168.2.102). Also note the option "-a". I put it there because I needed the dhcp option 82 to be appended in the request.

Hope it helps.
Best regards

Did it work to anyone?

Thank you for posting this info, Where did you get the format to insert option 82 data?  I am looking at the man page and it states very little on how to put the information in the config file.

thank you.

I do this exactly the same way but the AP doesn't forward the offer  to the client?
any ideas?

best regards.

running910 wrote:

I do this exactly the same way but the AP doesn't forward the offer  to the client?
any ideas?

I have the same problem. Did you find any solution?

Did it work to anyone?

Thanks!

Handyortung wrote:

Thanks!

What are you thanking for?
There is no solution in this thread...

The discussion might have continued from here.