当前位置:网站首页>DHCP protocol
DHCP protocol
2022-07-22 02:09:00 【L7256】
brief introduction
DHCP:(Dynamic Host Configuration Protocol) Dynamic Host Configuration Protocol , Mainly to let a computer plug in the network cable to achieve the effect of surfing the Internet , And a computer needs to get online and configure some information , and DDHCP The definition of message is to get these configuration information . Include :
- IP Address
- Subnet mask
- The default route is IP Address
- Domain name server IP Address
DHCP The interactive process on the client server
- client--->server:
need IP Address of the host A, Broadcast transmission DHCPDISCOVER message ( The source address is 0.0.0.0【 Because at this time client Not yet ip Address 】, The destination address is 255.255.255.255【 radio broadcast 】), To discover DHCP Server's IP Address .
- server--->client:
- All hosts in the local network can receive DHCPDISCOVER message , But only DHCP The server will reply to this message
- DHCP After the server receives the message , Find the configuration information of this computer , It can be found and returned to the host A.【 notes : once DHCP The first successful client from DHCP Server side lease to IP After the address , You can use the address permanently . The place is irrevocable This distribution method is called : Static allocation 】
- The host cannot be found A Configuration information , from IP Address pool (address pool) One of them IP The address is assigned to the host A, It's called Dynamic allocation .
- Assigned to IP The address is time sensitive , host A You can use this IP The time of the address is called Rental period . When When the lease expires , The client can request to extend the lease period and renew the lease , This operation is called The lease period is extended
- Host computer A reply : This message is called DHCPOFFER message , Indicates that IP Address and other information
- client:
host A Get IP Address and other information
DHCP Relay agent
stay DHCP Forwarding between server and client DHCP Data packets . We don't want to provide too much in the subnet DHCP The server , So there is at least one network DHCP Relay agent ( It's usually a router ).
- host A issue DHCPDISCOVER The broadcast message of ----> Router received -----> Routers send unicast messages to DHCP The server forwards this message ---> Router received DHCP Server feedback message ----> The router sends it to the host A
DHCP Detailed workflow of
- DHCP The server is opened passively UDP Of 67 port
- DHCP The client from 68 Of UDP Port send DHCPDISCOVER message
- DHCP The client receives... From the server DHCPOFFER message ( There may be a few )
- DHCP The client selects one DHCPOFFER message , And issue DHCPREQUEST message 【 Renew lease term 】
- DHCP Server reply DHCPACK message , perhaps DHCPNACK message
- DHCP Client issue DHCPRELEASE message 【 The client stops the lease period provided by the server , Send this message 】
边栏推荐
- Local storage software system of local area network for data acquisition of electric meters in Enterprises
- 基于三维GIS的场数据模型研究与实践
- import torch_ geometric. NN error /lib64/libm so. 6: version `GLIBC_ 2.27‘ not found
- OSPF综合实验
- 反沙箱方法
- YouTube “标签产品” 试点项目上线
- Minor spanning tree
- Hcip day 9 notes
- 字节跳动确认将自研芯片:仅供内部使用;马斯克:我已将大脑上传云端;Go 语言产品负责人离职|极客头条...
- VALDO2021——血管病变检测挑战赛之血管间隙分割(二)
猜你喜欢
Codeforces Round #808 (Div. 2) - A,B,C
weirdo A company's interview questions asked about toilet habits, eating time, sleeping time, etc
Matlab simulation analysis of spectrum switching mechanism of cognitive radio based on relay assistance
Rigid body of unity physical component
VALDO2021——血管病变检测挑战赛之血管间隙分割(一)
3511. Water pouring problem
Nacos配置中心中配置文件的创建、微服务读取nacos配置中心
HCIP第十一天笔记
分布式事务之Seata详解
奇葩!一公司面试题竟问如厕习惯、吃饭时长、入睡时间等
随机推荐
使用LoadBalancer替换Ribbon负载均衡器
马斯克把大脑上传云端?周鸿祎:还得要用人脑安全卫士杀个毒
沟通 节选自《闻缺陷则喜》(此书可免费下载)
NepCTF2022 WP
安全之路 —— 单管道反向连接后门解析
Hcip day 10 notes
网络安全和数据安全分不清?数据安全为何重要?
js对象:检测属性是否存在
为Kubernetes选择合适的容器运行时
Codeforces Round #809 (Div. 2) - C, D1
TableWidget 排序的多种方式
3625. Power
RedisGraph图形数据库多活设计方案
Codeforces Round #808 (Div. 2) - A,B,C
R语言ggplot2可视化:ggplot2可视化分组箱图,将可视化图像的图例(legend)放置在图像底部居中、其中图例信息水平平铺 (position legend bottom center)
3625. 幂次方
Chapter 3 business function development (to display the main page of clues and query the data of each drop-down box of the form)
08. Merge sort and quick sort
VALDO2021——血管病变检测挑战赛之血管间隙分割(二)
大型【项目管理】的实战