Pages

Thursday, February 23, 2012

How to Configure RIS Server in Linux




Configuration Setup of RIS Server:-

Step 1) Configure the DNS Server (Netexpertsindia.COM) Server Name:- server.netexpertsindia.com ( DNS Server use for Name Resloution )
Step 2) Configure the DHCP Server (1.0.0.10-1.0.0.254) ( DHCP Server Provide IP Address to Client PC)
Step 3) Yum Server

*****How to Configure YUM Server *******

#mount /dev/cdrom /mnt
#Cd /mnt/Server
#rpm –ivh vsftpd
#cp –av /mnt/. /var/ftp/pub/
#cp /mnt/Server/repodata/comps-rhel5-server-core-xml /var/ftp/pub/Server
#cp /mnt/VT/repodata/comps-rhel5-vt-xml /var/ftp/pub/VT
#cp /mnt/Cluster/repodata/comps-rhel5-cluster-xml /var/ftp/pub/Cluster
#cp /mnt/ClusterStorage/repodata/comps-rhel5-cluster-st- xml /var/ftp/pub/ClusterStorage
#rpm –ivh createrepo
#creatrepo -vg comps-rhel5-server-core-xml /var/ftp/pub/Server
#creatrepo -vg comps-rhel5-vt-xml /var/ftp/pub/VT
#creatrepo -vg comps-rhel5-cluster-xml /var/ftp/pub/Cluster
#creatrepo -vg comps-rhel5-cluster-st-xml /var/ftp/pub/ClusterStorage

#vim /etc/yum.repos.d/yum.repo
Press i
[server]
Name=yum
Baseurl=ftp://1.0.0.1/pub/Server
Gpgcheck=0
[VT]
Name=yum
Baseurl=ftp://1.0.0.1/pub/VT
Gpgcheck=0
[Cluster]
Name=yum
Baseurl=ftp://1.0.0.1/pub/Cluster
Gpgcheck=0
[ClusterStorage]
Name=yum
Baseurl=ftp://1.0.0.1/pub/ClusterStorage
Gpgcheck=0
:wq (Save and Exit)
#yum grouplist

Step 4) TFTP Server

*****How to Configure TFTP Server *******


Step:-

#yum install tftp
#vim /etc/xinetd.d/tftp

disable = no (default yes change to no)
:wq
#cd /tftpboot
#mkdir /tftpboot/pxelinux.cfg
#cp –av /var/ftp/pub/isolinux/. /tftpboot
#cp –av /tftpboot/isolinux.cfg /tftpboot/pxelinux.cfg/default
#vim /tftpboot/pxelinux.cfg/default
default local (default set linux change into local )
:wq


Setup 5) Editing in DHCP Configuration File:-

Step :-
#vim /etc/dhcpd.conf
After the
Ignore client-update line inset following line:-
allow bootp;
allow booting;
class “pxeclients” {
match if substring(option vendor-class-identifier, 0, 9) = “PXEClient”;
next-server 1.0.0.1;
filename “pxelinux.0”;
}
:wq


6) Start the Following Services:-

#service vsftpd restart
#service named restart
#service dhcpd restart
#service xinted restart
Note: - If you have get error “File not Found” run the Following Command:-
#cp /usr/lib/syslinux/pxelinux.0 /tftp



*******************Enjoy*******************

No comments:

Post a Comment