binding match source-port

Use this command to set the source port to virtual server binding behavior for the IPv4 virtual server.

Syntax

binding match source-port {any | exact}
no binding match source-port

Parameters

any Specifies that a single binding will match any source port the client uses destined to the same virtual server. This option is supported for IPv4 virtual servers only.
exact Specifies that a binding should be created for each source port the client uses destined to a virtual server. The default mode is exact.

Defaults

The virtual server binding match source port mode defaults to exact.

Mode

Configuration command, SLB Virtual Server Configuration mode.

Usage

An IPv6 virtual server only supports the exact source port binding mode. Since this is the default binding mode, there is no reason to use this command in an IPv6 virtual server context.

When the match source-port any mode is set in an IPv4 virtual server context, SLB connections through the virtual server create a binding that will match any source port the client uses destined to the same virtual server VIP address and UDP/TCP port. The match source-port any mode provides a means for SLB to set up fewer bindings per client for cases where only one load balancing decision will be made for this client to virtual server for all TCP/UPD connections. Once the binding is set up, the client is bound to the initial real server for all connections to the same virtual server.

The match source-port any mode will be automatically overridden for Application Layer Gateways (ALG) FTP Control/Data, TFTP, or any virtual server using a source NAT pool.

The match source-port any mode should not be used if multiple virtual servers are configured to use real servers that have the same IP address and destination UDP/TCP port.

The “no” form of this command resets the source port to virtual server binding behavior to the default value of exact.

Example

This example shows how to set the binding match source port mode to any for the virtual-http virtual server:

System(rw-config)->ip slb vserver virtual-http
System(rw-config-slb-vserver)->binding match source-port any