Network File System (Nfs); How It Works - Red Hat ENTERPRISE LINUX 3 Reference Manual

Hide thumbs Also See for ENTERPRISE LINUX 3:
Table of Contents

Advertisement

A Network File System (NFS) allows remote hosts to mount file systems over a network and interact
with those file systems as though they are mounted locally. This enables system administrators to
consolidate resources onto centralized servers on the network.
This chapter focuses on fundamental NFS concepts and supplemental information. For specific in-
structions regarding the configuration and operation of NFS server and client software, refer to the
chapter titled Network File System (NFS) in the Red Hat Enterprise Linux System Administration
Guide.

9.1. How It Works

Currently, there are two versions of NFS. NFS version 2 (NFSv2) is older and is widely supported.
NFS version 3 (NFSv3) has more features, including variable size file handling and better error re-
porting, but is not fully compatible with NFSv2 clients. Red Hat Enterprise Linux serves both NFSv2
and NFSv3 clients, and when mounting a file system via NFS, Red Hat Enterprise Linux uses NFSv3
by default, if server the supports it.
NFSv2 uses the User Datagram Protocol (UDP) to provide a stateless network connection between
the client and server. NFSv3 can use either UDP or Transmission Control Protocol (TCP) running
over an IP network.
The stateless UDP connection under normal conditions minimizes network traffic, as the NFS server
sends the client a cookie after the client is authorized to access the shared volume. This cookie is
a random value stored on the server's side and is passed along with RPC requests from the client.
The NFS server can be restarted without affecting the clients and the cookie remains intact. However,
because UDP is stateless, if the server goes down unexpectedly, UDP clients continue to saturate the
network with requests for the server. For this reason, TCP is the preferred protocol when connecting
to an NFSv3 server.
Note
For compatibility purposes, UDP is the default transport protocol for NFS under Red Hat Enterprise
Linux. Refer to the chapter titled Network File System (NFS) in the Red Hat Enterprise Linux System
Administration Guide for more information about connecting to NFS servers using TCP.
The only time NFS performs authentication is when a client system attempts to mount the shared
NFS resource. To limit access to the NFS service, TCP wrappers are used. TCP wrappers read the
/etc/hosts.allow
permitted or denied access to the NFS service. For more information on configuring access controls
with TCP wrappers, refer to Chapter 16 TCP Wrappers and
After the client is granted access by TCP wrappers, the NFS server refers to its configuration file,
, to determine whether the client is allowed to access any of the exported file systems.
/etc/exports
Once access is granted, all file and directory operations are available to the user.
and
/etc/hosts.deny

Network File System (NFS)

files to determine if a particular client or network is
xinetd
Chapter 9.
.

Advertisement

Table of Contents
loading

Table of Contents