Nfs – How to tell mount.nfs to use rpcbind v3 or v4, instead of the older v2 (ie. portmapper)

nfs

I would like to force my NFSv3 client to use rpcbind v3 or V4 (as described in RFC 1833) when communicating with the rpcbind (formerly portmapper) remote server, but I neither found a mount.nfs option telling the client to do so, nor I found a solution googling the Net.
So I wonder if there is any way to do so…? Or is this restricted to NFSv4 mounts only?

For NFSv3, the available options related to versions are only to force NFS protocol version ("-o nfsvers" or "-o vers") or MOUNTd version ("-o mountvers").
But anyway, in any of my multiple attempts, mount.nfs uses v2 (as described in RFC 1833), i.e. the former portmapper to get program ports from the rpcbind service on remote port 111.

Thanks in advance

Best Answer

To mount NFS export from target server using NFSv3

mount –o v3 target_server_name:/export/share /mnt

hope this helps.