5 & gt; .WINS sERVER
dhcp client requests a complete process:
1 & gt ;. client: dhcp discover (dhcp client broadcasts discovery server)
2 & gt ;. Server: dhcp offer (dhcp server response)
3>. Client: dhcp request (client makes a request)
4>. Server: dhcp ack (server sends response message to client)
Note :
1>. The entire dhcp request process, whether it is the client or the server, sends a message that is broadcast.
2>. The way the client obtains the ip address through dhcp: The client will broadcast the request ip address. If there is a dhcp server in the LAN, it will respond to the ip address to the client.
3>. When there are multiple dhcp servers in the LAN, the client will only accept one of the dhcp servers and reject the others.
dhcp protocol of technical terms:
lease time: the lease period. The valid time for the client to obtain the ip address.
dhcp relay: dhcp relay, dhcp relay is suitable for the network segment to obtain the ip address.
client request process, how to extend the lease:
client lease time in the past half, then request an extension of the lease, the server-side response single client to the server, lease Time becomes the original lease time. When the server does not respond to the client, when the client leases the past half of the lease time, the server sends a request again, requesting to extend the lease time. In this way, when the lease time passes 93.75%, the client will broadcast to the client. discover new dhcp server (dhcp discover)
dhcp server and client-initiated port: port number
server starts: 68 (udp)
client startup port number: achieve 67 (udp)
dhcp service implementation
dhcp function in Linux hosts in two ways:
1 & gt ;. dhcp
dHCP (Dynamic host Configuration Protocol) is a Protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server.
2>. dnsmasq
Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the globa DNS.
dnsmasq The job is characterized by lightweight. Simple implementation
centos7.2 dhcp service on the host:
lab topology:
the following steps: building the
node1 dhcp server:
1 & gt ;. [root @ node2 ~] # yum install -y dhcp
2 & gt ;. configuration files and file unit
dhcp profile:
/etc /dhcp /Dhcpd.conf
/etc/dhcp/dhcpd6.conf
dhcp unit file File:
/usr/lib/systemd/system/dhcpd.service
/usr/lib/systemd/system/dhcpd6 .service
3 & gt ;. modify /etc/dhcp/dhcpd.conf profile:
a & gt ;. specified search domain specified DNS address
.. b>. Specify the minimum default lease duration and maximum lease duration.
c & gt ;. designated ip pool.
4 & gt ;. start dhcp service
5 & gt ;. add a default gateway:.
6 & gt ;. Restart the dhcpd service.
node2 Node Test:
1 & gt ;. manual test
2 & gt ;. view generated ip address and gateway information.
ip address
Gateway Address:
node1 node
dhcp server specified by the client host card mac address assigned ip address:
modify the configuration file: Use the host option
restart dhcpd service.
node2 node test:
modify the configuration file are experiencing trouble summarize:
modify the configuration file, There must be a subnet in the subnet where the ip address is located.
Hyper-V Replica resynchronization This topic raises peoples attention, the first question you might
Experimental Line Connection Diagram: DCRS-5526S Configuration: Assume that the name of the DHCP ad
Yesterday, Ctrip.com couldnt open the server. I believe that everyone can see the spectacula
There are five basic ways to dissipate a blade server. Once one of these methods is selected
Solution for Flv file cannot be played under the server in 2003.
Xeon processor IBM System x3500 priced at 14300
How to choose the server operating system
Turn your computer into a virtual server
Teach you how to diagnose the performance of the server
CentOS uses all the parameters of the previous command in detail
IBM blade server downtime eliminates
How to build a stable FTP server
Blade server hard disk boot Linux independent installation (2)
Win3 appears d3dcompiler_43.dll is missing, the program software can not run normally How to solve
Disabling the AeroSnap Maximization feature in Windows 7
Hard disk is not a god and bad experts teach you how to save the law
What should I do if the win7 computer is turned on slowly?
Windows 7 Task Manager knows the process well
Windows 8 Beta version of massive screenshots and feature exposure
Clever use win7 restore and backup to make the system easy to return to the soul (2)
Where is the official version of win10 system downloaded?
Avoid Windows 8.1 Security "Trap"
How to use the notebook Japanese keyboard This article to teach you