How DHCP works?
DHCP server
- Assign a uniqe IP to a host
- Provide subnet mask
- Default gateway, DNS server address
DHCP can run on routers, or a server. At home usually on a router, in enterpirse. It's handled by a server
- Step1: DHCP discover A send broadcast messages
- Step 2: DHCP Offer
- Step 3: DHCP request
- Step 4: HHCP Pack
Send the IP address, subnet mask and DNS server