The Linux Administration group is for the discussion of technical issues technical issues that arise during the administration of Linux systems, including maintaining the operating system and supporting end-user applications.

Hi,
You can do this by two methods:
method i)
After installing and configuring nfs on your machine you need to restart following services
1)/etc/init.d/portmap //which register ports for rpc
2)/etc/init.d/rpcidmapd //which map ur uid gid
3)/etc/init.d/nfs //both above should be running to nfs register ports
4)/etc/init.d/nfslock //nfslock locks files
5)and check rpcinfo -p localhost
1. you should get list of allocated ports nfs.
try to mount on client end.
You should start services sequentially, because rpc registers ports using portmap and portmap allocates ports for nfs through rpcidmapd, so everything depends on each other.

method ii)

If you are using redhat or fedora or similar OSes,
you can tell your rpcports for nfs, means which ports nfs should listen, and off-course rpc should allocate
in /etc/sysconfig/nfs