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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content