I understand that IP address is a unique address to identify a machine in a network. But for the first time when i Plug in say ethernet cable of a network to my PC's Ethernet Port, how the IP address is assigned? Let's rule out static IP address where you can configure manually.
How a DHCP assigns a IP address when i Plugin network cable for first time.
Best Answer
The basic process is quite simple. I'll only cover that and omit scenarios where several DHCP servers exist, error conditions crop up or discovery has to cross network boundaries.
For more information on the DHCP packet content and what to do in error cases read the Wikipedia article: https://en.wikipedia.org/wiki/DHCP