How to install the Configure ISC DHCP server on Debian Linux

Source: Internet
Author: User
Tags dns hostname dedicated server domain name server

Dynamic Host Control Protocol (DHCP) provides a convenient way for network administrators to provide network layer addresses for changing network hosts or dynamic networks, the most commonly used DHCP service tool being iscdhcpserver. The purpose of the DHCP service is to provide the host with the necessary network information to communicate with other hosts connected to the network. The DHCP service provides information such as: DNS server information, network address (IP), subnet mask, default gateway information, host name, and so on.

This tutorial describes how Isc-dhcp-server, which runs on Debian7.7 4.2. Version 4, manages multiple virtual local area networks (VLANs), and can be easily applied to a single network.

The test network is used by Cisco routers to manage DHCP lease addresses in a traditional way. There are currently 12 VLANs that need to be managed through a centralized server. By transferring the DHCP task to a dedicated server, the router can reclaim the resources and use the resources for more important tasks, such as routing addressing, access control lists, traffic monitoring, and network address translation.

Another, the benefit of transferring the DHCP service to a dedicated server, later on, is that it can establish a dynamic Domain name server (DDNS) so that when the host requests a DHCP address from the server, the host name of the new host is added to the DNS system.

Installing and configuring the ISCDHCP server


1. Use the APT tool to install the ISC software in the Debian repository to create this multihomed server. As with other tutorials, you need to use root or sudo access rights. Please modify it appropriately so that you can use the following command. (#表示使用的root权限)

#apt-getinstallisc-dhcp-server[install theiscdhcpserver Software] #dpkg--get-selectionsisc-dhcp-server[confirm that the software has been successfully installed]# dpkg-sisc-dhcp-server[confirm a successful installation in another way]

Installiscdhcpserverindebian


2, confirm that the service software has been installed, now need to provide network information to configure the server, so that the server can be based on our needs to distribute network information. The minimum DHCP information you need to know as an administrator is as follows:

Network address

Subnet mask

Dynamically assigned range of addresses

Some other useful information that is dynamically allocated by the server includes:

Default Gateway

DNS Server IP Address

Domain Name

Host Name

Network broadcast Address

This is only a very small part of the options that will allow the ISCDHCP server to process. If you want to see all the options and their descriptions you need to enter the following commands after installing the software:


#mandhcpd. conf


3. Once the administrator has identified all the necessary information for this server distribution, it is time to configure the server and allocate the necessary pool of addresses. Before you configure any address pool or server configuration, you must configure the DHCP server to listen on one of the interfaces on this server.

On this particular server, when the NIC is set up, DHCP listens for an interface named ' Bond0 '. Please change the server and network environment according to your actual situation. The following configuration is for this tutorial.

configureiscdhcpnetwork


This line specifies DHCP traffic on the DHCP service listening interface (one or more). Modify the master configuration file and assign the appropriate DHCP address pool to the desired network. The master configuration file is in/etc/dhcp/dhcpd.conf. Open this file with a text editor

#nano/etc/dhcp/dhcpd.conf

This configuration file can configure the address pool/host we need. At the top of the file is the phrase ' ddns-update-style ', which is set to ' none ' in this tutorial. In a later tutorial, you'll talk about dynamic dns,isc-dhcp-server that will integrate with BIND9, which enables the hostname update to point to an IP address.

4, the next part is the administrator to configure global network settings, such as DNS domain name, default lease time, IP address, subnet mask, and other. If you would like to know all the options, please read the dhcpd.conf file in the Man manual, and the command is as follows:

#mandhcpd. conf

For this server, we need to configure some global network settings at the top of the configuration file so that we do not have to set it separately in each address pool.

Configureiscddns


Let's take a moment to explain these options, although they are some global settings in this tutorial, but can also be configured separately for one address pool.

Optiondomain-name "Comptech.local"; – all hosts that use this DHCP server will be part of the DNS domain "comptech.local".

OPTIONDOMAIN-NAME-SERVERS172.27.10.6;DHCP to all network hosts that configure this DHCP server, the DNS server address is 172.27.10.6.

optionsubnet-mask255.255.255.0;– Each network device is assigned a subnet mask of 255.255.255.0 or/24.

default-lease-time3600;– the default valid address lease time (in seconds). If the lease time is exhausted, the host can reapply for the lease. If the lease is complete, the corresponding address will be recovered as soon as possible.

max-lease-time86400;– This is the maximum lease time (in seconds) that a host can rent.

ping-checktrue;– This is an additional test to ensure that the network address that the server points out is not the network address that is already in use by another host on the current network.

ping-timeout;– How many seconds the server waits for a ping response before judging the address before it has been used.

ignoreclient-updates; This option is now negligible because DDNS was previously disabled in the configuration file, but when DDNS is running, this option ignores the host's request to update its DNS hostname. AC qq:2881064157

How to install the Configure ISC DHCP server on Debian Linux

Related Article

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.