Setup and Install NFS Server, NFS Client Connect on Centos7

1- Configure NFS Server

#yum -y install nfs-utils
#vi /etc/idmapd.conf
#vi /etc/exports
#mkdir /home/abc

add abc directory is only under user and group name nfsnobody
#chown -R nfsnobody. /home/abc

add this line for NFS exports
/home/abc 10.0.0.0/24(rw) 
#systemctl start rpcbind nfs-server
#systemctl enable rpcbind nfs-server
reload configure:
#exportfs -r

2- Configure NFS Client (Centos 7)


#yum -y install nfs-utils
#vi /etc/idmapd.conf


change domain name if have:
# line 5: uncomment and change to your domain name
Domain = abc.world
#systemctl start rpcbind
#systemctl enable rpcbind

#mount -t nfs dlp.server.world(or ip-server):/home /mnt/abc
check after mount:
#df -hT
will show:

dlp.server.world:/home/abc  nfs4       46G  1.4G   45G   4% /mnt/abc

+ Configure NFS mounting on fstab to mount it when the system boots.

#vi /etc/fstab
# add like follows to the end
dlp.server.world:/home /home nfs defaults 0 0
save and exit.


+ Configure auto-mounting. For example, set NFS directory on /mntdir.
#yum -y install autofs
#vi /etc/auto.master
#add follows to the end

/- /etc/auto.mount
#vi /etc/auto.mount
create new : [mount point] [option] [location]
/mntdir -fstype=nfs,rw dlp.server.world:/home
#mkdir /mntdir
#systemctl start autofs
#systemctl enable autofs

move to the mount point to make sure it normally mounted
#cd /mntdir
#ll
total 0 drwx------ 2 cent cent 59 Jul 9 2014 cent
#cat /proc/mounts | grep mntdir
/etc/auto.mount /mntdir autofs rw,relatime,fd=18,pgrp=2093,timeout=300,minproto=5,maxproto=5,direct 0 0
dlp.server.world:/home /mntdir nfs4 rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,
hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.0.0.31,local_lock=none,addr=10.0.0.30 0 0

2-1-Configure NFS Client(Windows Server OS)
This example is on Windows Server 2012 R2.
Open [Server Manager] and click [Add Roles and Fetures].
Click [Next] to proceed
-----------
Check a box [Client for NFS] to proceed
-----------
After finishing installation, click [Close] button
It's ready to mount NFS shared. Run cmd.exe with administrator priviledge and 
input commands like follows.
⇒ mount [NFS server's hostname or IP address]:/[shared name] [local drive]:\
If connected normally, successfull message is shown like follows.

























then open window explore, we will mount drive.

2-2-Configure NFS Client(Windows Client OS)

This example is on Windows 10 Enterprise
Open [Control Panel] - [Programs and Fetures].
Click [Turn Windows fetures on or off] on the left-side and check boxes on [Services for NFS] 
like follows and click [OK] button
It's ready to mount NFS shared. Run cmd.exe with administrator priviledge and input commands like follows
⇒ mount [NFS server's hostname or IP address]:/[shared name] [local drive]:\
if completed mount will like the same window server 2012