How to enable tcp keepalive for NFS in Red Hat Enterprise Linux ?

Solution Verified - Updated -

Issue

  • How to enable tcp keepalive for NFS ?
# netstat -o
nfs_server:nfs    ESTABLISHED off (0.00/0/0)   <<=== Disabled
  • All tcp keepalive parameters are default.
# sysctl -a |grep tcp_keepalive
net.ipv4.tcp_keepalive_time = 7200
net.ipv4.tcp_keepalive_probes = 9
net.ipv4.tcp_keepalive_intvl = 75

Environment

  • Red Hat Enterprise Linux 5, 6 and 7
  • NFS

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.