Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically assign an IP address to a computer from a defined range of numbers (i.e., a scope) configured for a given network.
DHCP assigns an IP address when a system is started, for example:
D – D in the term DORA stands for the DHCP Discover packet. The DHCP Discover packet
is broadcasted by the DHCP client computer in order to find the available DHCP server(s) in the network. Since the DHCP client computer sends the DHCP Discover packet as a broadcast, all the
DHCP servers that are present in the network receive the packet and respond accordingly.
O – O in the term DORA stands for the DHCP Offer packet. The DHCP Offer is a unicast packet that is sent by the DHCP server who receives the DHCP Discover packet from the DHCP client computer. The DHCP Offer packet contains the available IP address that the DHCP server offers to the client computer.
R – R in the term DORA stands for the DHCP Request packet. The DHCP Request is again a unicast packet sent by the DHCP client computer to the DHCP server who had sent the DHCP Offer packet to the client computer. With the help of the DHCP Request packet, the DHCP client computer requests the DHCP server to assign the offered IP address to it.
A – A in the term DORA stands for the DHCP Acknowledge packet. The DHCP Acknowledge is a unicast packet sent by the DHCP server to the DHCP client computer acknowledging the assignment of the offered IP address for a specific lease time.
Lease times for all Indiana University campuses are as follows:
Router(config)# interface ethernet0/0
Router(config-if)#ip address 192.168.0.1 255.255.255.0
Router(config-if)# no shutdown
Router(config)# ip dhcp pool mypool
Router(dhcp-config)# network 192.168.0.0 /24
Router(dhcp-config)#domain-name domain.com
Router(dhcp-config)#dns-server 8.8.8.8 4.2.2.2
Router(dhcp-config)#default-router 192.168.0.1
Router(dhcp-config)#lease 7
Router(dhcp-config)#exit
Router(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.20
Router#show ip dhcp bindings