System Administration Guide: Network Services

ProcedureHow to Use the Command Line to Select Different Versions of NFS on a Client

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.

  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. Mount the desired version of NFS on the client.

    Type the following command:


    # mount -o vers=value server-name:/share-point /local-dir
    
    value

    Provide the version number.

    server-name

    Provide the name of the server.

    /share-point

    Provide the path of the remote directory to be shared.

    /local-dir

    Provide the path of the local mount point.


    Note –

    This command uses the NFS protocol to mount the remote directory and overrides the client settings in the /etc/default/nfs file.


See Also

Version Negotiation in NFS