Friday, 10 August 2012

DHCP Server Configuration RHEL6.0


Ver : 4.1.1
Port: 67
Logfile: /var/log/messages

Step 1# Installation
#yum install dhcp

Step 2# Edit configuration file
#cp /usr/share/doc/dhcp-*/dhcpd.conf.sample /etc/dhcp/dhcpd.conf
#vim /etc/dhcp/dhcpd.conf

option domain-name              "example.com";
option domain-name-servers      192.168.1.2; (dns server ip)
ddns-updates on; (I have doubt whether is need or not)
ddns-domainname “example.com.”
ddns-rev-domainname “in-addr.arpa.”
ddns-update-style interim;
ignore client-updates;
# Enable authoritative
authoritative;
#In BOOTP tab
subnet 192.168.1.0 netmask 255.255.255.0 {
            range dynamic-bootp 192.168.1.5 192.168.1.15;
            option broadcast-address 192.168.1.255;
            option routers 192.168.1.2; (gateway ip)
}
#service dhcpd restart
#chkconfig dhcpd on
Reserved:
host ns2 {

 next-server ns2.your-domain.com;





           hardware ethernet 00:02:c3:d0:e5:83;

           fixed-address 40.175.42.254;


        }

No comments:

Post a Comment