Technical data
106 ServerIron ADX Advanced Server Load Balancing Guide
53-1002435-03
Sample configurations
2
NOTE
This example shows commands that are valid on the ServerIron ADX device only when it is running
the Layer 3 router image.
ServerIronADX(config)# server port 4199
ServerIronADX(config-port-4199)# tcp
ServerIronADX(config-port-4199)# exit
ServerIronADX(config)# server port 8080
ServerIronADX(config-port-8080)# tcp
ServerIronADX(config-port-8080)# exit
The commands above add port profiles for the two HTTP ports in this example that are using port
numbers other than the well-known port 80: 4199 and 8080. The tcp command at each port’s
configuration level is required. If you do not identify the ports as TCP ports, the ServerIron ADX
assumes the ports are UDP ports and thus does not use an appropriate health check for the ports.
You do not need to add a port profile for port 80, since that is the well-known HTTP port.
ServerIronADX(config)# server cache-name Cache-Server1 209.157.22.26
ServerIronADX(config-Cache-Server1)# port 4199
ServerIronADX(config-Cache-Server1)# port 8080
ServerIronADX(config-Cache-Server1)# port http
ServerIronADX(config-Cache-Server1)# exit
ServerIronADX(config)# server cache-name Cache-Server2 209.157.22.27
ServerIronADX(config-Cache-Server2)# port 4199
ServerIronADX(config-Cache-Server2)# port 8080
ServerIronADX(config-Cache-Server2)# port http
ServerIronADX(config-Cache-Server2)# exit
The commands above add cache servers Cache-Server1 and Cache-Server2. The port commands
add the HTTP ports to the cache servers. This example does not include optional modification of
the HTTP health check parameters for specific servers. For information about customizing an HTTP
health check for a specific server.
ServerIronADX(config)# server virtual-name-or-ip Proxy 209.157.22.2
ServerIronADX(config-vs-Proxy)# port 4199 sticky
ServerIronADX(config-vs-Proxy)# port 8080 sticky
ServerIronADX(config-vs-Proxy)# bind 4199 Cache-Server1 4199 Cache-Server2 4199
ServerIronADX(config-vs-Proxy)# bind 8080 Cache-Server1 8080 Cache-Server2 8080
ServerIronADX(config-vs-Proxy)# exit
The commands above configure a virtual IP address (VIP) to take the place of the Proxy IP address
to which some of the client browsers are directing their web requests. The IP address specified with
the server virtual-name-or-ip command is the IP address that is configured as the proxy on some
clients’ web browsers. The port 4199 sticky and port 8080 sticky commands add the ports and
also make them “sticky”. When a port is sticky, once a client session is established on the port, the
ServerIron ADX’s load balancing mechanism (used for the proxy) sends subsequent packets in the
same session to the same cache server. The sticky parameter is not required in this configuration
but it can streamline cache performance by keeping client sessions on the same cache servers.
The bind commands create table entries in the ServerIron ADX that associate the cache servers
and their HTTP ports with the Proxy VIP.
ServerIronADX(config)# server cache-group 1
ServerIronADX(config-tc-1)# cache-name Cache-Server1
ServerIronADX(config-tc-1)# cache-name Cache-Server2
ServerIronADX(config-tc-1)# write mem
The commands above add the cache servers to a cache group, then save the configuration
changes to the ServerIron ADX’s startup-config file.










