Thursday, June 12, 2008

Procdure to configure dhcp and nfs servers in RHEL5

RHEL 5

DHCP Server Configuration

Step1 : # rpm –q dhcp*
# rpm –ivh dhcp*
Step 2 : # cd /usr/share/doc/dhcp-3.0.1
# ls
# dhcpd.conf.sample
# cp dhcpd.conf.sample /etc/dhcpd.conf
Step 3 : # vi /etc/dhcpd.conf

option domain-name dns server ip
range 172.24.0.10 172.24.0.20
Step 4 : # vi /etc/sysconfig/network-scripts/ifcfg-eth0
onbootpro=static
Step 5 : # service dhcpd restart
# chkconfig dhcpd on

Client Configuration

# vi /etc/sysconfig/network-script/ifcfg-eth0
onbootpro=dhcp


NFS Server Configuration

Step1 : # rpm –ivh nf*
Step 2 : # vi /etc/exports
/test *(rw,sync)
:wq
Step3 : # exportfs –av
Step4 : # service portmap restart
# chkconfig portmap on
Step 5 : # service nfs restart
# chkconfig nfs on

Client Configuration

Step1 : # mount 172.24.0.254:/test /mnt
# cd /mnt