Lecture 3.itu Csu08101 2024 25.Dhcp Server
Lecture 3.itu Csu08101 2024 25.Dhcp Server
(DHCP)
➢ The DHCP server receives the DHCPDiscover packet and responds with a DHCPOffer
packet, offering IP addressing information to the DHCP client.
DHCP Request Message
➢ The DHCP server approves the lease with a DHCPACK (Acknowledgement) packet. The
packet includes the lease duration and other configuration information)
Other Messages in DHCP
DHCP Negative Acknowledgement Message
or the pool is empty, then this message is sent by the server to client.
DHCP decline
DHCP inform
➢ If a client address has obtained IP address manually then the client
uses a DHCP inform to obtain other local configuration
parameters, such as domain name. In reply to the DHCP inform
message, DHCP server generates DHCP ack message with local
configuration suitable for the client without allocating a new IP
address. This DHCP ack message is unicast to the client.
DHCP Components
DHCP Components
▪ DHCP Server: DHCP Server is a server that holds IP Addresses and other
➢ The APIPA service also checks regularly for the presence of a DHCP
server (every three minutes). If it detects a DHCP server on the
network, the DHCP server replaces the APIPA networking addresses
with dynamically assigned addresses.
Router as a DHCP server
A router can be configured as the DHCP Server
▪ Exclude IP addresses from being assigned by DHCP by using the ip dhcp excluded-
▪ Create a new DHCP pool with the ip dhcp pool NAME command.
▪ Define a subnet that will be used to assign IP addresses to hosts with the network
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#
When PC7 is configured with DHCP
IP configuration verification with ipconfig on PC7
DHCP Server
➢ In a complex network, the DHCP servers are usually
contained in an server farm. Therefore clients typically
are not on the same subnet as the DHCP server as we
have seen in the previous configuration.
➢ To ensure broadcasted DHCPDISCOVER messages are
sent to the remote DHCP server, we use the ip helper-
address address command (DHCP agent)
➢ The command is entered on the interface that will
receive DHCP broadcasts
Example of a Network with DHCP Server
Router Configuration
Router(config)#int f 0/0
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config-if)#ip helper-address 192.168.30.2
Router(config-if)#int f 2/0
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#ip helper-address 192.168.30.2
Router(config-if)#int f 1/0
Router(config-if)#ip add 192.168.30.1 255.255.255.0
DHCP Server Configuration
DHCP Server Configuration
DHCP Server Configuration
PC (Clients) Configurations
Import resources on DHCP Server
❑ What is DHCP? How does the DHCP server work? - ClouDNS Blog
End!!!