This article is from the "crazylinux" blog. Do you have to keep this source? Other customers do not configure ip addresses.
This article is from the "crazylinux" blog. Please keep this sourceHttp://crazysanjianke.blog.51cto.com/664423/167450This article is from 51CTO. COM technical blog
I. DHCP principles:
In some large and medium-sized enterprises, each of our computers must have one or more ip addresses. If you are a network administrator in the company, what should you do if your company's server or your boss wants a fixed ip Address Allocation? What do you do if other customers do not configure ip addresses? If you configure it manually, it will waste a lot of time and cause unnecessary troubles. It also increases the workload of the Administrator. In order to ensure that the network can run normally, manage the ip addresses in the network in a unified manner. We can solve this problem by setting up a dhcp server. Let's take a look at the principles of the dhcp service.
1. First, the client can send a request packet through broadcasting. The source IP address of this packet is 0.0.0.0, and the target IP address is 255.255.255.255.
2. the DHCP server receives the packet and then responds to the packet. It first checks whether the client has used an ip address before. If the packet is used, it is allocated, then, check whether the client is written to the network card bound to it. If yes, it will be allocated directly. If the above conditions are not met, it will be randomly allocated.
3. The client responds and sends a confirmation packet based on the network environment.
4. The server starts timing Based on the lease file.
Port Number enabled on the server: 67 68 [udp]
Ii. experiment environment:
DHCP server network settings:
Ip: 192.168.10.1
Netmask: 255.255.255.0
Gw: 192.168.10.100
DNS: 202.106.0.20
DHCP relay proxy Network Setting Server:
Ip: 192.168.10.100
Netmask: 255.255.255.0
Gw: 192.168.10.1
DNS: 202.106.0.20