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 netmask {
option routers;
option subnet­mask;
option domain­name "";
option domain­name­servers;
default­lease­time 21600;
max­lease­time 43200;
#host station1 {
#hardware ethernet 00:a0:cc:3c:80:c5;
Step 4:
start dhcp service
#chkconfig dhcpd on
#service dhcpd start
Client Side:
Step 5:
enable dhcp in client side
#service network restart
Step 6:
check the ip address of machine

No comments:
Write comments