当前位置:网站首页>DHCP, TFTP Foundation
DHCP, TFTP Foundation
2022-06-24 08:20:00 【BusyOps】
One 、DHCP relevant
Hard disk was once a very scarce resource in the early days , At that time, diskless workstations were very popular , Each workstation has no operating system , When starting up, you should load the operating system provided by the server into the memory , In order to get the necessary files from the server , There was a protocol called bootp(boot protocol), It can send a broadcast message to the server for application by means of a network card with self wake-up function IP Address , Then the server sends the operating system files required by the workstation , But its distribution IP The address is permanently assigned . So then it came out DHCP(Dynamic Host Configuration Protocol), It introduces the concept of lease term
1. Workflow
- First step (dhcp discover): After the client is powered on , Because I don't have IP Address , So pass RARP Broadcast to find DHCP The server
- The second step (dhcp offer): After the server receives the broadcast , Will be assigned to the client IP、MASH、GW、DNS wait
- The third step (dhcp request): Clients may receive multiple messages dhcp Server response , It will select one from multiple servers and send dhcp Request use message , This message is also broadcast , I choose one dhcp The server , And then the unselected dhcp The server reclaims the newly assigned address
- Step four (dhcp ack):dhcp Send a confirmation message , It's also a radio
2. Renewal
- 50%: When ip Percent of the remaining lease term of the address 50 When , The client will contact dhcp Application for renewal of server , If there is no response, proceed to the next step
- 75%: When ip Percent of the remaining lease term of the address 75 When , The client will contact dhcp Application for renewal of server , If there is no response, proceed to the next step
- 87.5%: When ip Percent of the remaining lease term of the address 87.5 When , The client will contact dhcp Application for renewal of server , If there is no response, it will be re initiated dhcp discover
3、 Installation and related documents
The package name is dhcp, Can be used directly yum install dhcp -y install
/etc/dhcp/dhcpd.conf: The configuration file/etc/dhcp/dhcpd6.conf:ipv6 Configuration file for/usr/sbin/dhcpd:/usr/sbin/dhcrelay: Repeater program file/var/lib/dhcpd/dhcpd.leases:dhcp Distribution record of/usr/lib/systemd/system/dhcpd.service:Uint file/usr/lib/systemd/system/dhcpd6.service:Unit file/usr/lib/systemd/system/dhcrealy.service:Unit file
4、 Configuration related instructions
option domain-name "string"; : Indicate except IP And mask , Other attributes to be assigned
option domain-name-servers "string"; :DNS Server address
default-liease-time #; : Default lease term , Unit second
max-lease-time #; : Maximum lease term
log-facility: Define the log
subnet <IP> netmask <MASK> {
: Indicate which network segment to be responsible for
range <START_IP> <STOP_IP>; : Indicate the start and end addresses that can be assigned
option routers IP : Indicate the assigned gateway address
}
5、 Sample configuration
option domain-name "busyops.org";
option domain-name-servers 8.8.8.8;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.70.0 netmask 255.255.255.0 {
range 192.168.70.100 192.168.70.250;
option routers 192.168.70.254;
}
Two 、TFTP relevant
The full name is simple file transfer protocol (Trivial File Transfer Protocol), Mainly responsible for the guidance of diskless workstation . You can use it directly yum install tftp tftp-server install
1. Related documents
/usr/sbin/in.tftpd: Program files/etc/xinetd.d/tftp: The configuration file/usr/lib/systemd/system/tftp.service:Unit file/usr/lib/systemd/system/tftp.socket/var/lib/tftpboot: File root
边栏推荐
- C language_ Love and hate between string and pointer
- WPS的JS宏实现图片正文在同一段落的分离方法
- Swift 基礎 閉包/Block的使用(源碼)
- 到底哪一首才是唐诗第一?
- LINQ query (2)
- Swift 基础 闭包/Block的使用(源码)
- Simple refraction effect
- 问题3 — messageBox弹框,修改默认背景色
- 1279_ Vsock installation failure resolution when VMware player installs VMware Tools
- Dart development server, do I have a fever?
猜你喜欢

Markdown 实现文内链接跳转

Coordinate transformation of graphic technology

Small sample fault diagnosis - attention mechanism code - Implementation of bigru code parsing

Swift Extension NetworkUtil(網絡監聽)(源碼)

Synthesize video through ffmpeg according to m3u8 file of video on the network

Swift extension networkutil (network monitoring) (source code)

Pagoda panel installation php7.2 installation phalcon3.3.2

Graphmae ---- quick reading of papers

Swift foundation features unique to swift

Pat 1157: school anniversary
随机推荐
Swift Extension NetworkUtil(網絡監聽)(源碼)
[ACNOI2022]做过也不会
C语言_字符串与指针的爱恨情仇
Blue Bridge Cup_ Queen n problem
Pat 1157: school anniversary
Online education fades
LINQ 查询(2)
对于flex:1的详细解释,flex:1
LINQ query (2)
Industrial computer anti cracking
Pipeline concept of graphic technology
论文笔记: 多标签学习 DM2L
Sql语句内运算问题
到底哪一首才是唐诗第一?
LabVIEW查找n个元素数组中的质数
longhorn安装与使用
Four models of iPhone 13 series have been exposed, and indeed, they are 13 fragrant!
Solution of electric education system for intelligent supervision station
Solve the problem of notebook keyboard disabling failure
JVM underlying principle analysis