The following procedure shows you how to control which version of NFS is used on the client by modifying the /etc/default/nfs file. If you prefer to use the command line, refer to How to Use the Command Line to Select Different Versions of NFS on a Client.
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.
Edit the /etc/default/nfs file.
For example, if you want only version 3 on the client, set the values for both NFS_CLIENT_VERSMAX and NFS_CLIENT_VERSMIN to 3. For a list of keywords and their values, refer to Keywords for the /etc/default/nfs File.
NFS_CLIENT_VERSMAX=value NFS_CLIENT_VERSMIN=value |
Provide the version number.
By default, these lines are commented. Remember to remove the pound (#) sign, also.
Mount NFS on the client.
Type the following command:
# mount server-name:/share-point /local-dir |
Provide the name of the server.
Provide the path of the remote directory to be shared.
Provide the path of the local mount point.