Configuring Load Sharing Network Address Translation (LSNAT) maxconns
19-18 LSNAT Configuration
maxconns
UsethiscommandtolimitthenumberofconnectionstoarealLSNATserver.
Syntax
maxconns maximum-number
no maxconns
Parameters
Defaults
None.
Mode
Routercommand,SLBRealServerConfigurationmode:Matrix>Router(config‐slb‐real)#
Usage
The“no”formofthiscommandremovesthelimitofconnectionstotheserver.
Example
Thisexampleshowshowtolimitthenumberofconnectionsto20ontherealserveratIP10.1.2.3
inthe“httpserver”serverfarm:
Matrix>Router(config)#ip slb serverfarm httpserver
Matrix>Router(config-slb-sfarm)#real 10.1.2.3 port 80
Matrix>Router(config-slb-real)#faildetect ping-int 10 ping-retries 6
Matrix>Router(config-slb-real)#maxconns 20
Matrix>Router(config-slb-real)#inservice
weight
Usethiscommandtospecifytheweightloadnumberofarealserverthatisamemberofan
LSNATserverfarm.
Syntax
weight weight-number
no weight weight-number
Parameters
Defaults
None.
maximum‐number Specifiesthemaximumnumberofconnectionsallowed.Thedefault
conditionisunlimitednumberofconnections.
weight‐number Specifiestheweightloadnumber.Validvaluesare1‐255.