Configuring DHCP IOS DHCP server
- Client sends a broadcast DHCPDISCOVER message to the server
- The DHCP server replies with a DHCPOFFER message containing the IP address, subnet mask , gateway and other parameters.
- The client sends a broadcast DHCPREQUEST message to the server, requesting the offered address.
- The DHCP server replies with a broadcast DHCPACK packet to the client.
DHCP server was designed to work within the same broadcast domain as the clients.
If DHCP server is behind another router , that router must become a DHCP Relay Agent. The DHCP relay will intercept the broadcast DHCP messages from the client and will forward them to the server as unicast messages. See at the end of this post a setup based on this scenario.
My network setup in GNS3 shown below