ServerIron ADX Global Server Load Balancing Guide 87
53-1002437-01
Affinity 1
The <si-ip-addr> parameter specifies the site ServerIron ADX’s management IP address.
NOTE
In either case, the running-config and the startup-config file refer to the ServerIron ADX by its IP
address.
The <ip-addr> <ip-mask> or <ip-addr>/<prefix-length> parameter specifies the prefix. You can
specify a mask from 0.0.0.0-255.255.255.254. If you instead specify a prefix length, you can
specify from 0-31 bits.
If you specify 0.0.0.0 0.0.0.0 or 0.0.0.0/0, the ServerIron ADX applies the affinity definition to all
client addresses. As a result, an address that does not match another affinity definition uses the
zero affinity definition by default. If you do not configure a default affinity definition, the ServerIron
ADX uses the standard GSLB policy for clients whose addresses are not within a prefix in an affinity
definition.
ServerIronADX(config-gslb-affinity)# prefer sunnyvale slb-1 for 0.0.0.0/0
ServerIronADX(config-gslb-affinity)# prefer atlanta slb-1 for 192.108.22.0/22
These commands configure a default affinity definition (using the 0.0.0.0/0) prefix and an affinity
definition that uses prefix 192.108.22.0/22. For clients that are not within the prefix in the second
affinity definition, the ServerIron ADX uses the default affinity definition. The ServerIron ADX sends
clients whose IP addresses are within the 192.108.22.0/22 prefix to a VIP on slb-1 at the “atlanta”
site, when available. The ServerIron ADX sends all other clients to a VIP on slb-1 at the “sunnyvale”
site when available.
Displaying RTT prefix cache entries
You can display RTT prefix cache entries. The GSLB ServerIron ADX maintains a cache of RTT
information received from the site ServerIron ADXs through the GSLB protocol. You can display the
RTT information the GSLB ServerIron ADX has related to a client IP address.
To display affinity configuration information, enter the following command at any level of the CLI.
Syntax: show gslb cache <ip-addr>
The <ip-addr> command specifies a site address.
The output in this example shows the information in the GSLB ServerIron ADX’s prefix cache for
prefix 192.108.22.0, including the affinity configuration information.
The prefix source field indicates the source of the prefix. If the source is “affinity”, the prefix is
associated with a site ServerIron ADX as part of an affinity definition.
If the ServerIron ADX contains an affinity definition for the prefix you specify, the affinity information
is listed in the affinity field. The affinity field indicates the GSLB site, management IP address, and
GSLB name of the ServerIron ADX associated with the prefix.
ServerIronADX(config)# show gslb cache 192.108.22.0
prefix length = 22, prefix = 192.108.22.0, region = N-AM
prefix source = affinity, client-query
affinity = site: atlanta, ServerIronADX: 192.108.22.111 slb-1
www.brocade.com:
site = atlanta, ServerIronADX = slb-1(192.108.22.111), rtt = 4 (x100 usec)