当前位置:网站首页>DHCP协议工作流程
DHCP协议工作流程
2022-04-21 09:57:00 【学到老才能活到老】
一个全新主机的请求一次DHCP服务的过程主要包含以下四个步骤
第一步:
客户机操作系统生成一个DHCP discover发现报文,被放置在一个具有广播IP目的地址(255.255.255.255)和源IP地址为0.0.0.0的IP数据报中(网络层),发送到以太网,试图找到网络中DHCP服务器以获取一个IP地址。
这一步可以简化为DHCP discover,源IP:0.0.0.0,目的IP:255.255.255.255,表示客户机说我需要一个IP,DHCP你在哪,能不能分我一个?
第二步:
当运行在路由器中的DHCP服务器(通常)接收到DHCP discover报文,就回复给客户机一个DHCP offer供给报文,包含一些参数配置信息,按照上述封装反顺序封装,此时的源IP为DHCP服务器的地址,目的地址仍旧是255.255.255.255,因为此时IP还没分配到客户机。
这一步简化为DHCP offer,源IP:DHCP服务器IP地址,目的ip:255.255.255.255,表示DHCP服务器说我在这,可以给你一个,你按照我说的配置一下先。
第三步:
客户机收到DHCP offer后,看了DHCP服务器所说的配置信息,表示接受,就发送一个DHCP request请求报文,源IP地址为0.0.0.0,目的IP地址为255.255.255.255,表示客户机说好的我接受这些配置,你把IP给我吧。
第四步:
DHCP服务器收到request报文后,就将分配的IP地址封装进DHCP ack确认报文,使用源IP地址:DHCP服务器IP,目的IP:255.255.255.255发送出去,客户机接收到这个信息就算完成了IP地址的获取。
版权声明
本文为[学到老才能活到老]所创,转载请带上原文链接,感谢
https://blog.csdn.net/MARS_098/article/details/115420885
边栏推荐
- Common text processing commands
- requires XXX>=YYY, but you‘ll have XXXX=ZZZ which is incompatible
- 阿里云移动研发平台EMAS,3月产品动态
- 2022年A特种设备相关管理(电梯)考试试题模拟考试平台操作
- [hand in hand to prepare you for the video game] monochrome block recognition (based on openmv)
- [learn junit5 from official documents] [i] [overview] [learning notes]
- ConvNeXt
- 每日一题(2022-04-19)——字符的最短距离
- 7-2 符号配对|PTA
- Transaction isolation level and mvcc
猜你喜欢

My life of Honker Security Commando
![[hand in hand to prepare you for the video game] detailed explanation of April tag tag tracking (3D positioning)](/img/61/4b23b9d126a48ecaf7c7e2b288ed4e.png)
[hand in hand to prepare you for the video game] detailed explanation of April tag tag tracking (3D positioning)

2022危险化学品经营单位主要负责人上岗证题库及模拟考试

元术练舞室,赛博朋克酷炫风格等你来畅跳

gltf模型带透明贴图的显示问题

常用文本处理命令

CommDGI: Community detection oriented deep graph infomax 2020 CIKM

Mapbox 创建多个可拖动的标记点

Operation of simulated examination platform of special operation certificate examination question bank for safety production management personnel of hazardous chemical production units in 2022
![[hand in hand to prepare you for the video game] monochrome block recognition (based on openmv)](/img/85/34247a2470295bf6a61dcd7c0cafd9.png)
[hand in hand to prepare you for the video game] monochrome block recognition (based on openmv)
随机推荐
Write table of MySQL Foundation (create table)
Cilcate环境搭建
gltf模型带透明贴图的显示问题
2022制冷与空调设备运行操作考试题模拟考试题库及答案
[notes] cmakelists Txt file syntax record
事务的隔离级别与MVCC
每日一题(2022-04-20)——文件的最长绝对路径
常用文本处理命令
[DL image classification]
【总结】1296- 总结 12 个常见移动端 H5 与 Hybrid 开发问题
Regular expression syntax and common regular expressions
Installation de MySQL dans docker sous CentOS
A simple group chat function based on websocket
ConvNeXt
m3u8视频下载器-idm突破无法下载受保护的数据, 下不了限制
[hand in hand to prepare you for the video game] recent summary
SQL题集[(2)]
Gunicorn usage - server project deployment
Operating system - thread safety - Learning
One trick is to solve the servlet of servlet [dispatcher servlet] Init() threw an exception