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. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.
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.