A virtual service may expose multiple ports. This section explains the two ways to map virtual service ports to corresponding ports on pool servers.
Mapping a Set of Virtual Service Ports to the Same Port on Pool Servers
This is the simplest configuration, where the virtual service and pool server ports are the same. To achieve this:
Use the Settings tab of the virtual service editor to identify multiple virtual service ports, one port at a time, or by specifying a port range.
Use the Server tab of the pool editor to deactivate port translation by selecting the Deactivate Port Translation check box.
In this case, the “Default Server Port” property of the pool is ignored, and requests are forwarded to servers on the same port as the receiving port of the virtual service.
Mapping a Set of Virtual Service Ports to Different Ports on Pool Servers
For this case, a specific virtual service port must be mapped to a specific port on pool servers.
To achieve this:
Use the Settings tab of the virtual service editor to identify multiple virtual service ports, individually or by port range.
Create a pool for each pool server port and use the Settings tab of the pool editor to configure a unique “Default Server Port” for each pool.
Note:The actual back-end members of all the pools may be the same.
Using the Policies tab of the virtual service editor, add an HTTP request rule that uses content switching to direct requests to pools based on the value of the port number. Figure 7 illustrates what also must be done for ports 81 and 82, and figure 8 shows rules for all three service ports.
The resulting virtual service is displayed as follows: