DHCP server of ISC

Source: Internet
Author: User
Tags touch command


To configure the DHCP server dhcpd, edit the dhcpd. conf sample file from the server directory and install it as/etc/dhcpd. conf20. At the same time, you must create an empty lease database file named/var/db/dhcp. leases and run the touch command. Make sure that dhcpd can write this file. To set the dhcpd. conf file, the following information is required:
Www.2cto.com the subnet where IP addresses are managed by dhcpd and the address range that can be issued; the initial and maximum lease period in seconds; the configuration of BOOTP clients, if any (they have static IP addresses, at the same time, their MAC-level hardware addresses must be listed). Any other options that the server should send to the DHCP Client: network mask, default route, DNS domain, name server, etc. The dhcpd manual page provides an overview of the configuration process. The exact language of the configuration file cannot be described on the dhcpd. conf manual page. Both are located in the server subdirectory of the software. In some Linux releases, the/etc directory contains a sample of the dhcpd. conf file. You can modify it to make it conform to the configuration of your local site.
Dhcpd should be automatically started at system boot time. You will find it helpful to start the daemon based on the existence of the/etc/dhcpd. conf file. The following is a sample dhcpd. conf file obtained from a Linux host with two interfaces: one interface is an internal interface, and the other interface is connected to the Internet. This computer performs NAT translation for the internal network and also rents 10 IP addresses on this network. The dhcpd. conf file contains a dummy (required) entry for external interfaces and a host entry for each computer that requires a fixed address. The IP address allocated by DHCP may conflict with the content of the DNS database. A common name (such as dhcpl.synack.net) is often assigned to each dynamic lease address at the outlet, and each machine name is allowed to "float" between their IP addresses ". If you are running the recently released BIND version that supports dynamic updates, you can also configure dhcpd to update the DNS database when it allocates an address. The dynamic update solution is more complex, but it has the advantage of saving the host name of each computer.
Www.2cto.com dhcpd records rental transactions in the dhcp. leases file. It will also rename this file as dhcpd. leases ~, Then, regularly back up the dhcp. leases file from the database in the memory. If dhcpd crashes during this operation, only dhcp. leases ~ may be left in the end ~ File. In this case, dhcpd will refuse to start. You must rename the file before restarting. Do not create an empty dhcp. leases file. Otherwise, there will be confusion when the client has two addresses.
DHCP clients do not need to be configured. It stores the status files of each connection in the/var/lib/dhcp directory or/var/lib/dhclient directory. The names of these files are named using the interfaces they describe. For example, the dhclient-eth0.leases file contains all the connection parameters that dhclient has set for the interface eth0. That which didn't kill me makes me stronger
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.