Server Configuration IP Add: 192.168.0.254: Step2: Now, Restart Xinetd and Portmap Service

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

NFS, or Network File System, is a server-client protocol for sharing

files between computers on a common network.


NFS enables you to mount a file system on a remote computer as if it
were local to your own system. You can then directly access any of the
files on that remote file system. The server and client do not have to
use the same operating system. The client system just needs to be
running an NFS client compatible with the NFS server.
SERVER CONFIGURATION
IP Add: 192.168.0.254
Step1: Three rpms are required to configure nfs server i.e nfs,
portmap, xinetd check them if not found then install.

Step2: Now, restart xinetd and portmap service.

Step3:To keep on these services after reboot on then


via chkconfig command

Step4: Check the status of the below services.

Step5: Now create a /data directory and grant full permission to it.

Step6: Now open /etc/exports file

Step7: share data folder for the network of 192.168.0.0/24 with read
and writes access

Step8: save file with :wq and exit


Step9: Now restart the nfs service and also on it with chkconfig

.
Step10: Restart nfs daemons with expotfs

Step11: Verify with showmount command that you have successfully


shared data folder

CLIENT CONFIGURATION
Step1: Check the show mount information.

Step2: TEMPORARY MOUNTINGNow mount this share folder on mnt mount


point. To test this share folder change directory to mnt and create
a test file

Step3: After use you should always unmount from mnt mount point

Step4: PERMANENT MOUNTINGIn this way you can use shared folder. But
this share folder will be available till system is up/running.To keep
it available after reboot make its entry in fstab.

Create a mount pointmkdir /temp, by making a directory

Step5: save the with :wq and exit reboot the system
Step6: After reboot check /temp directory it should show all
the shared data

You might also like