Configuration of DHCP servers in Linux

Source: Internet
Author: User

Premise: Set as a DHCP server, the IP address setting of the machine will be in the same network segment of the assigned address range

1. See if the DHCP server is installed

# Rpm-qa | Grepdhcp

2. Install if not installed

# yum Install DHCP

3, installed and then view the installation files, that is, repeat the first step of the operation

4. Locate the file you want to copy

# cat/etc/dhcpd.conf

The following files will appear:

See/usr/share/doc/dhcp*/dhcp.conf.conf.smaple

dhcp-3.0.5 This file

5. Copy this file to a file for example:/etc/dhcpd.conf

# cp–p/usr/share/doc/dhcp-3.0.5/dhcpd.conf.sample/etc/dhcpd.conf

6. Configuring DHCP Files

Modified: Sub Segment

router-Routing Address (Gateway)

IP Address Pool

7. Restart the DHCP service

# service DHCPD Start

8. Test-Test on another machine

setup--Setting the network IP is obtained by DHCP

Restart the NIC service--service network restart

Ifdown eth0

Ifup eth0

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.