DHCP Server Configuration in CentOS

How to install DHCP Server

[root@dhcpserver ~]# yum install dhcp

DHCP Server Configuration

1. Install the Package ‘dhcp’

#yum install dhcp

2. To check whether the package is installed use:

* rpm -qa | grep dhcp

3. To list the files installed from the package ‘dhcp’

* rpm -ql dhcp

4. Master Configuration files are

* /etc/dhcp/dhcpd.conf (ipv4)

* /etc/dhcp/dhcpd6.conf (ipv6)

5. The Master Configuration file will be empty and will point you to a sample file in /usr/share/doc/dhcp-<ver>/dhcpd.conf.sample

6. Copy the sample configuration (/usr/share/doc/dhcp-<ver>/dhcpd.conf.sample) to /etc/dhcp/dhcpd.conf

7. Basic Set of Parameters :

  • domain name
  • domain name servers
  • default-lease-time
  • max lease time
  • subnet

To know more on DHCP Configuration please CLICK this link  🙂

One Comment

  1. Reply
    Willaims February 8, 2013

    Good Stuff … !

Leave a Reply

Your email address will not be published. Required fields are marked *