Command Reference
TCP Commands
11 TCP Commands
11.1 ip tcp keepalive
Use this command to enable the TCP keepalive function. Use the
no
form of this command to restore
the default setting.
ip tcp keepalive
[
interval
num1
] [
times
num2
] [
idle-period
num3
]
no ip tcp keepalive
Parameter
Description
Parameter
Description
interval
num1
The interval of sending the keepalive packet, in the range from1 to
120 in the unit of seconds, The default is 75.
times
num2
Keepalive packet sending times, in the range from 1 to 10. The
default is 6.
idle-period
num3
Idle time, the time period during which the peer end does not send
any packet to the local end, in the range from 60 to 1800 in the unit of
seconds. The default is 900.
Defaults
The function is disabled by default.
Command
Mode
Global configuration mode
Usage Guide
The keepalive function enables TCP to detect whether the peer end is operating properly.
Suppose the keepalive function is enabled together with default
interval
,
times
and
idle-period
settings. TCP begins to send the keepalive packet at an interval of 75 seconds if it does not receive
any packet from the peer end in 900 seconds. The TCP connection is considered invalid and then
disconnected automatically if the device sends the keepalive packet for six consecutive times without
receiving any TCP packet from the peer end. This command applies to both IPv4 and IPv6 TCP.
Configuration
Examples
The following example enables the TCP keepalive function on the device and sets the
idle-period
and
interval
to180 and 60 respectively. If the device sends the keepalive packet for four consecutive
times without receiving any TCP packet from the peer end, the TCP connection is considered invalid.
Ruijie(config)# ip tcp keepalive interval 60 times 4 idle-period 180
Related
Commands
Command
Description
N/A
N/A
Platform
Description
N/A
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...