10-23-2011 02:22 AM - edited 03-07-2019 02:59 AM
i was trying to use router to set up a DHCP server.
the test was successful. bu i want to know how DHCP works? because
i know IP address is converted to mac address by ARP protocol so switch can reach correct destination.
but in the case of DHCP, the server
does not have the DHCP requester's MAC address , how does it assign the IP address ??
what protocols does DHCP use to discover the (part from DHCP of course ) mac address of other side.
10-23-2011 03:27 AM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
The DHCP client initially locally broadcasts for the DHCP server. This broadcast has the MAC of the client.
This is also why the DHCP server either needs to be on the same network or you need forward this broadcast to the DHCP server if it's non-local. The latter is normally accomplished with an IP helper.
The client's broadcast contains the client's MAC, so this is how the DHCP can L2 unicast back to the DHCP offering it an available IP address out of a pool of IP addresses it maintains. If an IP helper was used, the DHCP server also has the helper's IP address so it sends back to the helper which will forward the response back to the client.
10-24-2011 11:24 AM
thank you guys.
10-23-2011 06:28 AM
Hi,
You may find this document about DHCP useful:
http://www.cisco.com/en/US/docs/ios/12_0t/12_0t1/feature/guide/Easyip2.html
Best regards,
Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide