The following procedure shows you how to use the command line to control which version of NFS is used on a client for a particular mount. If you prefer to modify the /etc/default/nfs file, see How to Select Different Versions of NFS on a Client by Modifying the /etc/default/nfs File.
Become superuser or assume an equivalent role.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Mount the desired version of NFS on the client.
Type the following command:
# mount -o vers=value server-name:/share-point /local-dir
Provide the version number.
Provide the name of the server.
Provide the path of the remote directory to be shared.
Provide the path of the local mount point.
This command uses the NFS protocol to mount the remote directory and overrides the client settings in the /etc/default/nfs file.