当前位置:网站首页>DHCP principle and configuration
DHCP principle and configuration
2022-07-23 12:54:00 【Y firm materialist】
Catalog
1.1DHCP (Dynamic HostConfiguration Protocol, Dynamic Host Configuration Protocol )
1.3DHCP The way of distribution
edit 1、 Client requests IP Address
3、 Client selection IP Address
4、 The server determines the lease
One 、 What is? DCHP service
1.1DHCP (Dynamic HostConfiguration Protocol, Dynamic Host Configuration Protocol )
- from lnternet Task team design and development
- Used exclusively for TCP/IP Computers in the network automatically assign TCP/IP Protocol of parameters

1.2 Use DHCP The benefits of
- Reduce the workload of Administrators · Avoid the possibility of input errors
- avoid IP Address conflict
- When changed IP Address segment , There is no need to reconfigure each user's IP Address
- Improved IP Address utilization
- Facilitate client configuration
1.3DHCP The way of distribution
- Automatically assigned : Assigned to a IP Permanent use after address
- Manually assign : from DHCP The server administrator specifically specifies lP Address
- Dynamic allocation : Release the after use IP, For other clients
Two 、DHCP Lease process
- Client from DHCP Server get IP The process of addressing is called DHCP Lease process
There are four steps :
1、 Client requests IP Address
- When one DHCP When the client starts , The client has not IP Address , So the client has to go through DHCP Get a legal address
- here DHCP The client sends... By broadcast DHCP Discover Find information to look for DHCP The server

2、 Server response
- DHCP The server received a request from the client IP Address information when , In their own IP Check the address pool to see if there is any legal IP Address to client
- If there is ,DHCP The server will IP Mark the address , Add to DHCP Offer In the news of , Then broadcast a DHCP Offer news

3、 Client selection IP Address
- DHCP The client receives the first DHCP Offer Extract... From the message IP Address , issue IP Address of the DHCP The server keeps the address , In this way, the address can no longer be assigned to another DHCP The client

4、 The server determines the lease
- DHCP The server receives DHCP Request After the news , With DHCPACK Broadcast a successful acknowledgement to the client in the form of a message , The message contains IP Valid lease and other configurable information for the address
- When the client receives DHCP ACK When the news , To configure IP Address , complete TCP/IP The initialization

Four message sending methods :
If it's Huawei equipment
2 Broadcast 2 Unicast
All other devices broadcast
relocatio
- When DHCP The server rents to the client IP The lease term of the address reaches 50% when , It needs to be updated
The lease term reaches 50% (T1) when ,DHCP The client will automatically unicast to DHCP Server send DHCPREQUEST message , Request an update IP Address lease . If you receive DHCP The server responded DHCP
ACK message , The lease term is updated successfully ( That is, the lease term starts from 0 Start calculating ); If you receive DHCP NAK message , Then resend DECP DITSCOVER Message request new IP Address - When the lease term reaches 87.58(T2) when , If not yet received DRCP The response from the server ,DPCP The client will automatically broadcast to DHRCP Server send DRCPREQUEST message , Request an update IP Address lease . If you receive DHCP The server responded DHCP
ACK message , The lease term is updated successfully ( That is, the lease term starts from 0 Start calculating )﹔ If you receive pHCcP NAK message , Then resend DHCPDISC0NER Message request new 12 Address - The client sends directly to the server that provides the lease DHCP Request package , Request to update the existing address lease
Two 、 Why use DHCP
avoid IP Address conflict .
When the network changes F Address segment , There is no need to reconfigure each user IP Address . Improved IP Address utilization .
Facilitate client configuration .
DHCP The service avoids manual setting IP Address error , At the same time, it also avoids putting a IP Address conflicts caused by address assignment to multiple workstations .DHCP Provides security 、 Reliable and simple TCP/IP Network settings , Reduced configuration effort P The burden of address
DHCP The way of distribution
Automatically assigned : Assigned to a IP Permanent use after address
Manually assign : from DHCP The server administrator specifically specifies IP Address
Dynamic allocation : Release the after use IP, For other clients
边栏推荐
- Delete node in binary sort tree
- HCIP-HCIA知识回顾(二)
- HCIP---条件匹配和OSPF协议
- Unity3d:UGUI,UI与特效粒子层级,2018.2以上版本BakeMesh,粒子在两个Image之间且在ScrollView
- 围棋能力概念与软件开发能力概念的对应
- Hcip --- OSPF details
- GameFramework:资源热更代码分析,检查版本信息,下载版本文件,校验版本文件,得到更新文件数量,下载文件,TaskPool
- Explain the release of TCP connection in detail
- Overview of OpenSSL self visa process
- Analyze redis cluster
猜你喜欢

Unity3d: script execution sequence on scene loading gameobejct

Super easy to use packet capturing tool tcpdump

学习日记——(路由与交换技术)DHCP(动态主机配置协议)

路由与接口技术——直连网络总结

HCIP---BGP相关配置

Hcip --- mGRE comprehensive experiment

Routing extension configuration of OSPF and rip

如何用普通的文本编辑器写Web页面

Unity3d:场景加载 GameObejct上脚本执行顺序

OSPF和RIP的路由扩展配置
随机推荐
OSPF的链路扩展配置
PDF Online preview, use of pdf.js
详解各种网络协议
Delete node in binary sort tree
Unity3d: script execution sequence on scene loading gameobejct
Learning diary - (routing and switching technology) DHCP (Dynamic Host Configuration Protocol)
HCIP---OSPF细节讲解
Unity3d: ugui source code, rebuild optimization
Unity3d:ugui source code eventsystem input system FAQ
围棋能力概念与软件开发能力概念的对应
如何解决if语句太多
Hcip --- condition matching and OSPF Protocol
GameFramework:资源热更代码分析,检查版本信息,下载版本文件,校验版本文件,得到更新文件数量,下载文件,TaskPool
读《凤凰架构》- RPC的历史与知识
Article on the basic technology needed to build hybrid app
如何用普通的文本编辑器写Web页面
C #: quick sort. If there is the same number, it will be ignored, and then continue the previous search direction to find the next number that meets the requirements for replacement
强一致性和弱一致性的分析思路以及分布式场景的并发技巧
学习日记——(路由与交换技术)DHCP(动态主机配置协议)
C: stack stack source code, array stack, chain stack