Command line interface, Creating a domain-level affinity group, Associating the domain-level group with a domain – Brocade Communications Systems ServerIron ADX 12.4.00 User Manual

Page 101

Advertising
background image

ServerIron ADX Global Server Load Balancing Guide

89

53-1002437-01

GSLB domain-level affinity

1

Command line interface

Users will now be able to configure domain-level affinity groups in addition to the global affinity
definitions. The new command line interface for the domain-level affinity feature is described
below.

Creating a domain-level affinity group

To create a domain-level affinity group, use the following commands.

ServerIronADX(config)#gslb affinity-group 1

ServerIronADX(config-gslb-affinity-group-1)#

Syntax: [no] gslb affinity-group <group-number>

<group-number>—specifies the group number

Specifying affinities definitions for the domain-level affinity group

To specify the affinities for the domain-level affinity group, use the following commands.

ServerIronADX(config)#gslb affinity-group 1

ServerIronADX(config-gslb-affinity-group-1)# prefer 1.1.1.102 for 1.1.1.0/24

ServerIronADX(config-gslb-affinity-group-1)# prefer 2.1.1.1 for 2.1.0.0/16

Syntax: [no] prefer <site-name> <si-name> | <si-ip-addr> for <ip-addr> <ip-mask> |

<ip-addr>/<prefix-length>

Configuring an affinity for prefix 0.0.0.0/0

To configure an affinity for a ServerIron ADX for prefix 0.0.0.0/0, use the following commands.

ServerIronADX(config)#gslb affinity-group 1

ServerIronADX(config-gslb-affinity-group-1)# prefer 1.1.1.102 for 1.1.1.0/24

ServerIronADX(config-gslb-affinity-group-1)# prefer 2.1.1.102 for 0.0.0.0/0

When this group is associated with a domain, all clients from subnet 1.1.1.0/24 querying for this
domain are directed to ServerIron ADX 1.1.1.102. All other client subnets querying for this domain
are directed to ServerIron ADX 2.1.1.102.

Associating the domain-level group with a domain

To associate a domain-level affinity group with a domain, use the following commands.

ServerIronADX(config)# gslb dns zone gslb.com

ServerIronADX(config-gslb-dns-gslb.com)# host www http

ServerIronADX(config-gslb-dns-gslb.com)# host www affinity-group 1

Syntax: host-info <host-name> affinity-group <group-number>

The <host-name> parameter specifies the host name.

The <group-number> parameter is the group number of the domain-level affinity group being
associated with this domain

NOTE

You have to configure the domain-level affinity group before you can associate it with the domain.

Advertising