Why do we use Keep Alive parameter ?
How do we change Keep Alive parameter in Linux?
# cat /proc/sys/net/ipv4/tcp_keepalive_time
# cat /proc/sys/net/ipv4/tcp_keepalive_intvl
# cat /proc/sys/net/ipv4/tcp_keepalive_probes
The numerical value in the first 2 files are defined in seconds and the third one is just a numerical value.
# echo 300 > /proc/sys/net/ipv4/tcp_keepalive_time
# echo 60 > /proc/sys/net/ipv4/tcp_keepalive_intvl
# echo 20 > /proc/sys/net/ipv4/tcp_keepalive_probes
Here we have change these values so now the first keepalive probe will be sent after 300 seconds i.e. 5 minutes and 20 probes would be sent before the network is disconnected. And the next packet will be sent again after 60 seconds i.e. 1 minute so this can obviously help resolve my network dis connectivy problem.
# sysctl -p
# sysctl -a
Reboot your machine once to take the changes affect and load your kernel with these new parameters.
Let me know your success and failure.
Putty session disconnects when idle
Reset the hard value of the file descriptors in Linux
Follow the below links for more tutorialsConfigure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler
Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
Basic iptables tutorial in Linux I
Basic iptables tutorial in Linux II
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?