maxconns

Use this command to limit the number of connections to an IPv4 or IPv6 real server.

Syntax

maxconns maximum-number
no maxconns

Parameters

maximum-number Specifies the maximum number of connections allowed. The default condition is unlimited number of connections.

Defaults

None.

Mode

Configuration command, SLB Real Server Configuration mode.

Usage

The “no” form of this command removes the limit of connections to the server.

Examples

This example shows how to limit the number of connections to 20 on the real server at IP 10.1.2.3 in the “myproductHTTP” server farm:

System(rw-config)->ip slb serverfarm myproductHTTP
System(rw-config-slb-sfarm)->real 10.1.2.3 port 80
System(rw-config-slb-real)->maxconns 20
System(rw-config-slb-real)->inservice

This example shows how to limit the number of connections to 20 on the real server at IP 2001:11ac:fd34::5 in the “myproductHTTP66” server farm:

System(rw-config)->ipv6 slb serverfarm myproductHTTP66
System(rw-config-slb-sfarm)->real 2001:11ac:fd34::5 port 80
System(rw-config-slb-real)->maxconns 20
System(rw-config-slb-real)->inservice