DCHP OFFER response going to relay address not to orginating address

Dees motosingh at yahoo.co.uk
Sun Sep 11 14:38:41 UTC 2022


 Hi Simon,
Thanks for the advice.
With difficulty in routing internal site DHCP subnet across (it will prevent usual DHCP renewal through unicast assuming a client will eventually do DHCP broadcast), will the following subnet declaration for tunnel IP then give out a shared-network pool subnet 
shared-network Combined-pools {subnet 192.168.1.0 netmask 255.255.255.0 {  range 192.168.1.100 192.168.1.254;  option subnet-mask 255.255.255.0;  option routers 192.168.1.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;                                          }
subnet 192.168.3.0 netmask 255.255.255.0  {  # subnet on interface 
                                                                       }                 subnet 10.0.8.0 netmask 255.255.255.0  {
                                                                  }                                }
Where 10.0.8.0 is the subnet for the tunnel interface.
or
shared-network Combined-pools {subnet 192.168.1.0 netmask 255.255.255.0 {  range 192.168.1.100 192.168.1.254;  option subnet-mask 255.255.255.0;  option routers 192.168.1.1;
option domain-name-servers 8.8.8.8, 8.8.4.4;                                                           
Thanks, Adam for your input as well.

Kind regards,Deepesh

    On Sunday, 11 September 2022 at 09:26:12 BST, Simon Hobson <dhcp1 at thehobsons.co.uk> wrote:  
 
 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

-- 
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.

dhcp-users mailing list
dhcp-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/dhcp-users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20220911/897ba2a4/attachment.htm>


More information about the dhcp-users mailing list