cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3204
Views
0
Helpful
3
Replies

how does dhcp work?

dannan lin
Level 1
Level 1

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.

3 Replies 3

Joseph W. Doherty
Hall of Fame
Hall of Fame

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.

thank you guys.

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