Hi Simon<br><br>"If I read this right, you have a relay box of some sort, and you want to
somehow second guess the IP address the client is going to get - in
advance of the server allocating it ?"<br><br>Yes perfect, i need to do some sort of query to the dhcp server to get the subnet configured that the server is ready to offer. <br><br>The reason for doing this is my box will be relay as well as a gateway to the packet data network, where DHCP server A is placed in normal wireless network and DHCP server 2 in the some sort of customized network such as wifi, i wanted to put the check list in my box and map the client ip with my database of Ip address, (worst case CLIENT X gets one Ip from DHCP A and second IP from DHCP B for two different network access) .<br>
<br>without knowing the ip address range of the DHCP server A and B i can't route with differential routing schemes<br><br>Is there a way to get the subnet information by query from dhcp relay server <br><br><br><br><br>
<br>some sort of Ip offloading to do that i need to have the DHCP server <br><br><div class="gmail_quote">On Mon, Apr 11, 2011 at 5:38 PM, Simon Hobson <span dir="ltr"><<a href="mailto:dhcp1@thehobsons.co.uk">dhcp1@thehobsons.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">pat wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is there a way to determine the scope/subnet information the dhcp server would offer , actually iam working on some code so that if the client address is from DHCP server A i will match in a intermediate box and route the client traffic to destination via route A, and if the subnet offered belongs to DHCP server B i will match in the intermediate box and route the client to destination via route B. both the destination are same for client but the path they choose will vary based on the ip address, i can't predefine the route in the intermediate box i have to do mapping prior routing can anyone help, the intermediate box could be dhcp relay also<br>
</blockquote>
<br></div>
If I read this right, you have a relay box of some sort, and you want to somehow second guess the IP address the client is going to get - in advance of the server allocating it ?<br>
<br>
Put simply, without complete visibility of the internal state of the server then it is not determinable in the general case. You would have to have a complete knowledge of the state of all leases/unused addresses to be able to take a good guess - and then it's not guaranteed.<br>
<br>
Perhaps if you could describe what you are trying to achieve then someone might be able to suggest something.<br>
<br>
-- <br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</blockquote></div><br>