Google
 

Configuring the DHCP Server

Installation and configuration of your DHCP service

1. Installation of the service
[root@proxy docadmin]# yum install dhcp
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
ddns-update-style interim;
ignore client-updates;

2. Check the install process
[root@proxy docadmin]# ps -ef|grep dhcp
root 2941 1 0 Sep06 ? 00:00:40 /usr/sbin/dhcpd
root 18191 18163 0 11:06 pts/1 00:00:00 grep dhcp

[root@proxy docadmin]# /sbin/chkconfig --list dhcpd
dhcpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

3. Configuring the dhcp config file
Settings:
Gateway of the clients: 192.168.0.1
Domain Name: jepoy.net
Range: 192.168.0.10 to 192.168.0.50

/etc/dhcpd.conf

ddns-update-style interim;
ignore client-updates;

subnet 192.168.0.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option nis-domain "jepoy.net";
option domain-name "jepoy.net";
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.0.10 192.168.0.50;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
host ns {next-server calamares.server.net;
# hardware ethernet 12:34:56:78:AB:CD;
fixed-address 192.168.0.1;
}
}

4. Start the service
[root@proxy etc]# /sbin/service dhcpd restart
Internet Systems Consortium DHCP Server V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/
Shutting down dhcpd: [ OK ]
Starting dhcpd: [ OK ]