ADC

Ranges of virtual servers and services

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, 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 are created with IP addresses that range between 10.102.29.30 and 10.102.29.34.

    Note: The IP addresses of the virtual servers and services must be consecutive.

  • 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.

Creating a range of virtual servers

To create range of virtual servers by using the CLI

At the command prompt, type one of the following commands:

add lb vserver <name>@ <protocol> -range <rangeValue> <IPAddress> [<port>]

add lb vserver <name>@[<rangeValue>]> <protocol> <IPAddress[<rangeValue>]> [<port>]
<!--NeedCopy-->

Example:

add lb vserver Vserver-LB-2 http -range 6 10.102.29.30 80
<!--NeedCopy-->

OR

add lb vserver vserver[P-R] http 10.102.29.[26-28] 80

vserver "vserverP" added

vserver "vserverQ" added

vserver "vserverR" added

Done
<!--NeedCopy-->

To create range of virtual servers by using the CLI

At the command prompt, type one of the following commands:

add lb vserver <name>@ <protocol> -range <rangeValue> <IPAddress> [<port>]

add lb vserver <name>@**[**<rangeValue>**]**> <protocol> <IPAddress[<rangeValue>]> [<port>]
<!--NeedCopy-->

Example:

add lb vserver Vserver-LB-2 http -range 6 10.102.29.30 80
<!--NeedCopy-->

OR

add lb vserver vserver[P-R] http 10.102.29.[26-28] 80
vserver "vserverP" added
vserver "vserverQ" added
vserver "vserverR" added
Done
<!--NeedCopy-->

To create range of virtual servers by using the GUI

  1. Navigate to Traffic Management > Load Balancing > Virtual Servers.
  2. Add a virtual server, and specify a range.

Creating a range of services

If you specify a range for the service name, specify a range for the IP address too.

To create range of services by using the CLI

At the command prompt, type the command:

add service <name>@ <IP>@ <protocol> <port>
<!--NeedCopy-->

Example:

> add service serv[1-3] 10.102.29.[102-104] http 80
service "serv1" added
service "serv2" added
service "serv3" added
 Done
<!--NeedCopy-->
Ranges of virtual servers and services