Export/mount directory over NFS
NFS server exports a directory and NFS client mounts it.
NFS server may run several versions of NFS, for example, NFSv2, NFSv3, and NFSv4.
NFS client chooses the NFS version at the mount time.
Create the export filesytem on the NFS server (master):
Export the file system to the client, n01:
On the NFS client, create the mounting point, /NFS, and mount the
file system, exported from the NFS server:
Alternatively, the file system, /NFS, can be mounted on the client with the different NFS version, for example, 3:
mount -t nfs -o vers=4 master:/NFS /NFS
mount -t nfs -o vers=3 master:/NFS /NFS
The NFS server and the client can be also referred by their IP addresses.
exportfs -o rw 192.168.5.36:/NFS
mount -t nfs -o vers=4 192.168.5.16:/NFS /NFS