Home >System Tutorial >LINUX >DHCP common configuration file analysis
This article provides a detailed analysis of several common files during the DHCP installation process. The specific analysis is as follows:
This is the main configuration file of the DHCP server. However, this file does not exist after the DHCP server is installed in some systems, so it needs to be created manually. Others have this main configuration file but no content. Just copy the corresponding template to this configuration file.
This is the execution file that starts the entire dhcp server.
This is the start and expiration time of the lease establishment between the DHCP server and the client. The records are in this file. It defaults to empty when the DHCP server is not started or no IP is assigned.
Open the main configuration file /etc/dhcpd.conf and find that it is empty, but a template is provided, which is the file /usr/share/doc/dhcp*/dhcpd.conf.sample behind see, dhcp The content of the template configuration file includes the usage of some parameters, declarations and options. The comment part can be placed anywhere and starts with a "#". When a line of content ends, it ends with a ";", except for the line where the curly brackets are located. ha
Enter the dhcp configuration template in Vim editing mode, press Enter or directly copy the file dhcpd.conf.sample to /etc/ and name it dhcpd.conf
Use vim editor to open the main configuration file dhcpd.conf
The above is the detailed content of DHCP common configuration file analysis. For more information, please follow other related articles on the PHP Chinese website!