NFS mounting issue

The server ip is 10.2.2.24. I have installed nfs-utils package the i have edited /etc/exports
i have added the following line

 /home 10.2.2.0/24(rw,sync,no_root_squash,no_all_squash)

i have saved, i have started the nfs service, then i am trying to mount nfs sharing from client machine using the following command

mkdir /mnt/nfs
mount -t 10.2.2.24:/home /mnt/nfs

but it is not mounting nfs sharing please guide me to rectify that

Hi,

Your command is missing the fstype operand as in;

mount -t nfs 10.2.2.24:/home /mnt/nfs

Also, could you please use code tags it makes things much easier to read.

Regards

Dave

Please use code tags as required by forum rules!

What IP is your client? That nfs- export is visible to subnet 10.0.0 only, with a 24 bit subnetmask, so a router will be needed between server and allowed clients. Unfortunately, I don't have any experience with nfs across routers.

i have used the following command also it is not working

mount -t nfs 10.2.2.24:/home /mnt/nfs

Hi,

Also having read this again, I doubt if you'll be able to do this easilly without changes to the networking as well - there may even be a need to have static routes set up by the network team if you have one.

Abain could you please use code tags.

Regards

Dave

Check if your firewall blocked the ports