How to configure setup DHCP in RHEL5

DHCP It will provide the IP to there client system. First we set the IP for the DHCP server and then set the IP range in the configuration file in rhel5.system: Step 1: Configuration DHCP rhel5
install dhcp package #yum install dhcp
Step 2: copy sample configuration file to /etc/dhcpd.conf
#cp /usr/share/doc/dhcp­3.0.5/dhcpd.conf.sample /etc/dhcpd.conf
Step 3: edit dhcp configuration file
#vim /etc/dhcpd.conf
ddns­update­style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.10;
option subnet­mask 255.255.255.0;
option domain­name "leena.com";
option domain­name­servers 192.168.0.10;
default­lease­time 21600;
max­lease­time 43200;
range 192.168.0.1 192.168.0.20;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
#fixed­address 192.168.0.1;
#}
}
Step 4:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side:
Step 5:
enable dhcp in client side
#neat­tui
#service network restart
Step 6:
check the ip address of machine
#ifconfig

Related post