System Administration Guide: Network Services

ProcedureHow to Select Different Versions of NFS on a Client by Modifying the /etc/default/nfs File

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.

  1. 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.

  2. 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.


    Provide the version number.

    Note –

    By default, these lines are commented. Remember to remove the pound (#) sign, also.

  3. 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.

See Also

Version Negotiation in NFS