LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   how to install dhcpd (https://www.linuxquestions.org/questions/linux-networking-3/how-to-install-dhcpd-730551/)

nesta1982 06-03-2009 09:51 PM

how to install dhcpd
 
I've been set up a virtual network which has three PCs, one is client, one is server,and another one is router. The router has 2 network interface cards, both server and client has 1 network interface card.

I want to configure dhcp file, but i can not find it.
how can I install it? because I have tried "yum install dhcpd", and it does not work.

John VV 06-03-2009 10:20 PM

you will need to let us know what distro you are using .
red hat ?
RHEL 5.3 ?
RHEL 4 ?
fedora 8,9,or 10 or 11 ( or older like fedora 5 )
CentOS 4 or 5.3 ?

repo 06-03-2009 10:59 PM

yum install dhcp

venubabu 06-05-2009 06:11 AM

Step1: Download dhcp-4.1.0.tar.gz and make copy in home directory

Step2: Unzip tar file by using command tar zxvf dhcp-4.1.0.tar.gz this will create one directory with name
dhcp-4.1.0

step3: Change to directory dhcp-4.1.0 and give command as ./configure

step4: After configure give make command

step5: Then give command make install

step6: create dhcpd.conf file in /etc directory as mention bellow

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

subnet 192.168.0.0 netmask 255.255.255.0 {

range 192.168.0.128 192.168.0.254;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name "your-domain.org";
option domain-name-servers 192.168.0.1;
}

default-lease-time 21600;
max-lease-time 43200;



Step7: copy lease file from /var/lib/dhcp/dhcpd.leasess to /var/db/dhcpd.leasess

step8: run dhcp server on eth0 by giving command /usr/sbin/dhcpd

step9: to start dhcp give command /sbin/services dhcp start
or /etc/inet.d/dhcpd start


Thanks & Regards

venubabu


All times are GMT -5. The time now is 08:18 PM.