Re: DCHP OFFER response going to relay address not to orginating address

Simon Hobson dhcp1 at thehobsons.co.uk
Sun Sep 11 08:24:44 UTC 2022


Adam Nielsen <a.nielsen at shikadi.net> wrote:
>> I have a network that sits remote and with DHCP on the central site.
>> DHCP DISCOVER is reaching the server and the server is responding.
>> DCHP  request source IP is 10.0.8.2 which is tunnel IP which is
>> routable IP on the network but when DCHP responds it is responding to
>> DHCP relay IP  (192.168.1.1) which is not routable not reaching back,
>> is there a way to instruct DHCP to route it back to source IP? Or is
>> this not a valid scenario for the DHCP relay?

Your network config is invalid. Packets MUST be routable from DHCP server to the client subnet. Without this, it cannot reply to unicast packets from clients when they are renewing leases - so you may have intermittent network problems as thet get very close to the end of their leases and fall back to broadcasts.

If you insist on not having the correct routing in place, you might be able to define a shared network containing the client and tunnel subnets, and change the relay agent to use the tunnel address. The server will then see the tunnel address - but will be able to associate it with the clients via the shared network.


>In your case if you don't want the IPs to change, you don't want a DHCP
>relay, and instead you want to instruct your router to forward the
>broadcast DHCP packets over the VPN link as-is.  This will cause your
>DHCP server to see the packets come from the real remote IP/MAC, and it
>will send responses there.

That won't work - the server will see locally attached clients and assign incorrect IPs.
Also, there's a limitation that the server won't listen for broadcast packets on non-broadcast links - so if the tunnel terminates on the seever then it wouldn't be listening for the packets.
 

Simon



More information about the dhcp-users mailing list