ipv6的Linux tcp设置

时间:2014-03-03 21:13:49

标签: linux networking tcp linux-kernel

我想更改tcp keepalive settigs,具体为tcp_keepalive_time,tcp_keepalive_intvl,tcp_keepalive_probes和tcp_retries2设置为linux。所有这些设置都可用于linux中的ipv4,但我没有看到任何ipv6设置。这些设置会自动应用于ipv6吗?如果这些设置确实适用于ipv6,是否有官方文档提及?

谢谢!

1 个答案:

答案 0 :(得分:8)

是的,ipv4的tcp设置也适用于ipv6:

https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt

...
/proc/sys/net/ipv6/* Variables:

IPv6 has no global variables such as tcp_*.  tcp_* settings under ipv4/ also
apply to IPv6  
...