How to enable tcp keepalive for NFS in Red Hat Enterprise Linux ?
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
