When you configure load balancing, you can create ranges of virtual servers and services, eliminating the need to configure virtual servers and services individually. For example, you can use a single procedure to create three virtual servers with three corresponding IP addresses. When more than one argument uses a range, all of the ranges must be of the same size.
The following are the types of ranges you can specify when adding services and virtual servers to your configuration:
Numeric ranges. Instead of typing a single number, you can specify a range of consecutive numbers.
For example, you can create a range of virtual servers by specifying a starting IP address, such as 10.102.29.30, and then typing a value for the last byte that indicates the range, such as 34. In this example, five virtual servers will be created with IP addresses that range between 10.102.29.30 and 10.102.29.34.
Alphabetic ranges. Instead of typing a literal letter, you can substitute a range for any single letter, for example, [C-G]. This results in all letters in the range being included, in this case C, D, E, F, and G.
For example, if you have three virtual servers named Vserver-x, Vserver-y, and Vserver-z, instead of configuring them separately, you can type vserver [x-z] to configure them all.
You create a range of virtual servers as described below.
At the command prompt, type one of the following commands:
add lb vserver Vserver-LB-2 http -range 6 10.102.29.30 80 OR > add lb vserver vserver[P-R] http 10.102.29.[26-28] 80 vserver "vserverP" added vserver "vserverQ" added vserver "vserverR" added Done
You create a range of services as described below. If you specify a range for the service name, specify a range for the IP address too.
At the command prompt, type the command:
> add service serv[1-3] 10.102.29.[102-104] http 80 service "serv1" added service "serv2" added service "serv3" added Done