DHCP Notes
DHCP Notes
DHCP Notes
=>Manual Configuration(mechanism)
-------------------------
Configured by Network Administrator,but confirmed by DHCP to avoid duplication
erros.
=>Automatic Configuration(mechanism)
-------------------------
Configured by DHCP server,assigning permanent IP Address to a host.
=>Dynamic Configuration(mechanism)
------------------------
Configured by DHCP, assigning of temporary IP Addresses to a host.
A)Interface Address pool=>only PCs connected to same segment can be assigned IP Ads
from this pool
How to configure it?
FIRST ENABLE DHCP ON ROUTER WITH THE COMMAND [dhcp enable]
#]interface G0/0/0
G0/0/0]dhcp select interface
G0/0/0]dhcp server dns-list 10.1.1.2
G0/0/0]dhcp server excluded ip-address 10.1.1.2
G0/0/0]dhcp server lease day 3
___________________________________________________________________________________
_____________________________
/DHCP/
----
An AR2220 router or S5700 switch can act as a DHCP server,PCs are clients.
DHCP Process
""""""""""""
(1)Discover message(PACKET) is sent(broadcasted) by PC to Servers to propose for
Assignment.
(2)Offer Message (unicast)is sent by DHCP server to give both an IP address it can
offer and configuration parameters.
[DHCP Client takes first offer message in case many servers send messages at the
same time]
(3)A DHCP request packet is sent to ask for the given offer from the server[s]
(broadcast)
(4)An Acknowledgement packet(unicast) is sent to the client to give the IP address
to the PC.[/else an NAK IS to refuse to offer]
-----------------------------------------------------------------------------------
-----------------------------------
(5)The pc sents a gratituos ARP to see if there can be a reply from any PC that
uses such an IP address,if there is no reply for
a specific time,then the PC will use that IP adress,else the PC will send a decline
packet to server telling it that the IP address
is used by another PC.
And then a request for another IP will be sent,and the process is repeated.
___________________________________________________________________________________
___________________________________________
-----------------------------------
There exists 3 types of timers(lease timer,update timer &renewal timer)
---------------------------------------------------
If A Lease time reaches 50%(when default),A Request message is sent for renewal of
expiry time and client enters update state,if server finds that the
client IP is still valid,it sent ACK and gives it a new lease (begins the expiry
time from start) and client re-enters binding state,
else an AK is send by server or if no reply till 12.5% remains,client cosiders the
server
inactive and enters intialization state (broadcasts Request msgs from scratch).