How to use NFS over TCP and UDP

NFS can be exported over TCP or UDP. Default transport protocol for NFSv4 is TCP. Whenever we mount the NFS as below, the connection gets established over TCP. If we want to mount NFS over UDP then we have to use -o udp switch as explained below.

NFS over TCP:

mount -t nfs  //[ip-address or hostname]:/mynfs-share /mnt

NFS over UDP:

mount -t nfs -o udp //[ip-address or hostname]:/mynfs-share /mnt

Comments

Popular posts from this blog

How to disable USB ports on Mac OS X Mavericks, Yosemite or El Capitan ?

How to enable root login in gnome on Debian 6 or 7