How to Change the TCP/IP timeout setting Aix / HP-UX / Solaris / Linux

Use the following steps to change the TCP/IP timeout value for your computer.

On AIX, run the following command:

no -o tcp_keepinit=<timeout_value>

where <timeout_value> is the length of the timeout period, in half seconds. To configure a timeout of 30 seconds, set the <timeout_value> value to 60.

On Solaris and HP-UX, run the following command:

ndd -set /dev/tcp tcp_ip_abort_cinterval <timeout_value>

where <timeout_value> is the length of the timeout period, in milliseconds. To configure a timeout of 30 seconds, set the <timeout_value> value to 30000.

On Linux, run the following command:

You can use /proc/sys/net/ipv4/tcp_keepalive_timeto setup new value.

The number of seconds a connection needs to be idle before TCP begins sending out keep-alive probes. Keep-alives are only sent when the SO_KEEPALIVE socket option is enabled. The default value is 7200 seconds (2 hours).

For example set value to 2400 seconds:

echo 2400 > /proc/sys/net/ipv4/tcp_keepalive_time

You can make changes to /proc filesystem permanently using /etc/sysctl.conf

To get timeout setting of tcp/ip :

HP-UX :

# ndd -get /dev/tcp tcp_ip_abort_cinterval
75000
#

Solaris:

bash-3.2# ndd -get /dev/tcp tcp_ip_abort_cinterval
180000
bash-3.2#

Aix:

# no -a | grep tcp_keepinit
tcp_keepinit = 150
#

Linux:

[root@jia ~]# cat /proc/sys/net/ipv4/tcp_keepalive_time
7200

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.