Specifying TCP or UDP Connections
Using the mount command from the client with no protocol parameters, the behavior will be first to try to establish a TCP connection with the server. If that fails, then it will try to establish a UDP connection with the server.
You can tell NFS to establish ONLY a TCP connection using the following command:
mount -o proto=tcp
If TCP is not available on the server, the mount fails.You can tell NFS to establish ONLY a UDP connection using the following command:
mount -o proto=udp
If UDP is not available on the server, the mount fails.
NFS Server TCP Connections
On the NFS server, to ensure a request for a TCP connection will be successful, the service must be advertised in the /etc/services name database file. This database advertises the availability of TCP on the server through port 2049. The entry appears in the /etc/services name database file. There is also an entry for UDP. They are as follows:
nfsd 2049/tcp #NFS remote file system
nfsd 2049/udp #NFS remote file system
"Vision, is the art of seeing the invisible"