Configure the DHCP server in CentOS 6.5

Source: Internet
Author: User

Linux: CentOS 6.5

1. Install DHCP service components:
 
# Rpm-ivh dhcp-4.1.1-38.P1.el6.centos.x86_64.rpm or yum install dhcp
 
Options and parameters:
 
-I: install
 
-V: view more detailed installation information.
 
-H: displays the installation progress in the installation information column.
 

2. list all files and directories of the software (list ):
 

# Rpm-ql dhcp
 
Options and parameters:
 

-Q: query
 
-L: list
 

3. cp/usr/share/doc/dhcp-4.1.1/dhcpd. conf. sample/etc/dhcpd. conf
 
Copy sample document
 
4. vim/etc/dhcpd. conf
 
Edit configuration document
 
Subnet 192.168.1.0 netmask has been released successfully {
Range 192.168.1.200 192.168.1.220;
Option domain-name-servers ns1.internal.example.org;
Option domain-name "internal.example.org ";
Option routers 192.168.1.1;
Option broadcast-address 192.168.1.255;
Default-lease-time 600;
Max-lease-time 7200;
}
 
Host ice {
Hardware ethernet 00: E0: 40: 02: EA: 2A;
Fixed-address 192.168.1.88;
}
 

5. Start dhcp
 
/Etc/init. d/dhcpd restart
 
Service dhcpd restart
 
Startup failure indicates a problem in the configuration document
 
6. Check whether the operation is successful
 
Netstat-tlunp
Tail-n 30/var/log/messages 7. Note: The configuration file has a problem: write less semicolons. The subnet mask and subnet are not the same network segment. The host ip address and the declared subnet are not in the same network segment.

Build a DHCP server in Linux

Configure the master-slave DNS server and DDNS under DHCP in CentOS

SUSE Linux 11 pxe + DHCP + tftp + ftp Unattended Installation

How to Set up a DHCP server in Linux

Step-by-step implementation of DHCP server in 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.