Command Reference TCP Commands
11.7 service tcp-keepalives-in
Use this command to enable the keepalive function for the TCP server. Use the no form of this
command to restore the default setting.
service tcp-keepalives-in [ interval ] [ garbage ]
no service tcp-keepalives-in
The interval of sending keepalive packets, in the range from 1 to
65535 in the unit of seconds. The default is 60.
The keepalive packet contains one-byte invalid data. The invalid data
is not contained by default.
This function is disabled by default.
Global configuration mode
The keepalive function enables the TCP server to detect whether the client is operating properly.
If the TCP server sends the keepalive packet for four consecutive times without receiving any TCP
packet from the client, the TCP connection is considered invalid and then is disconnected
automatically.
The following example enables the keepalive function for the TCP server and sets the interval of
sending the keepalive packet to 10 seconds. The keepalive packet contains one-byte invalid data.
Ruijie(config)# service tcp-keepalives-in 10 garbage
11.8 service tcp-keepalives-out
Use this command to enable the keepalive function for the TCP client. Use the no form of this
command to restore the default setting,