How to Set Up DHCPD for RedHat6.0Enterprise Edition

Source: Internet
Author: User
RedHat6.0Enterprise edition configure the DHCPD service first hanging on the cd image: mount/dev/cdrom/mnt/then install dhcp: cd/mnt/Packagesrpm-ivhdhcp-4.1.1-19.P1.el6.x86_64.rpm after the installation will generate a document to introduce dhcpd. conf configuration method, which can be copied to/etc/dhcpd /.

Configure the DHCPD service for RedHat 6.0 Enterprise Edition

First, mount/dev/cdrom/mnt/

Then install dhcp: cd/mnt/Packages

Rpm-ivh dhcp-4.1.1-19.P1.el6.x86_64.rpm

After the installation is complete, a document will be generated to introduce the configuration method of dhcpd. conf, which can be copied to/etc/dhcpd/and needs to be renamed:

Cp/usr/share/doc/dhcp-4.1.1/dhcpd. conf. sample/etc/dhcp/dhcpd. conf

Alternatively, you can directly edit the file, as shown in the following figure:

Ddns-update-style interim; the update method must be
Subnet 192.168.0.0 netmask 255.255.255.0 {
Option routers 192.168.0.100; set the default Network Management
Option subnet-mask limit 255.0; set the subnet mask
Default-lease-time 21600; set the default lease time
Max-lease-time 43200; set the maximum lease time
Range 192.168.0.128 192.168.0.254; network segment announcement
}
Host Name of the host whose localhost retains the address
{
Hardware ethernet 00: 00: 00: 00: 00; // specify the MAC address of the client.
Fixed-address 192.168.0.111; // assign a fixed IP address to the specified MAC address.
}

Save and exit after configuration. Then start the server at/etc/init. d/dhcpd start. If the server can be started, no problem occurs. If an error is prompted, check where the error is written.

This is a simple configuration! The following is the correct startup display:

[Root @ localhost dhcp] # service dhcpd restart
Disable dhcpd: [OK]
Starting dhcpd: [OK]

[Root @ localhost dhcp] #

When applying for an address, you can open the information terminal on the local machine to view the effect:

Tail-f/var/log/messages

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.