April 24, 2009

The Dynamic Host Configuration Protocol (DHCP) allows you to specify network parameters on a server and have client computers query the server for their information such as IP, netmask, gateway, DNS, etc

Now i am going to tell you how to create a DHCP server on your system...i am assuming your servers's ip and hostname as written below...


-------------------------------------------------------------------------------------------------

Server's ip : 172.24.25.254
Hostname of server : server.chd.edu
Domain name : chd.edu
DNS server's ip : 172.24.25.253
NTP server's ip : 172.24.25.253

-------------------------------------------------------------------------------------------------

):- First of all download the dhcp packages from your linux dvd..

# Yum install dhcp*

# cp /usr/share/doc/dhcp-3.0pl1/dhcpd.conf.sample /etc/dhcpd.conf

):- Now open your dhcpd.conf file and made changes as your requirement



# vim /etc/dhcpd.conf

subnet 172.24.0.0 netmask 255.255.0.0 {

# The range of IP addresses the server
# will issue to DHCP enabled PC clients
# booting up on the network


option routers 172.24.25.254;

option domain-name "chd.edu"

option subnet-mask 255.255.0.0;

option ntp-servers 172.24.25.253;

option domain-name-servers 172.24.25.253; <-what servers to use for DNS in order to resolve hostnames to IP addresses # option netbios-name-servers 192.168.1.100; # You can also assign specific IP addresses based on the clients' # ethernet MAC address as follows (Host's name is "laser-printer": range dynamic-bootup 172.24.25.10 172.24.254.30; <-Nobody can have there ip range except the below hosts, to whom we are giving fixed ip addresses >>>Here i am giving fixed ip address for two special systems by
giving there Hardware addresses below


host station1 {
ddns-updates on;
hardware ethernet 00:40:96:38:7d:42;
fixed-address 172.24.25.1;
}
host station2 {
hardware ethernet 00:30:6e:28:5c:3f;
fixed-address 172.24.25.2;
}



:wq!


# Service dhcpd restart

# chkconfig dhcpd on

No comments:

Post a Comment