Configure per-VLAN wildcarded virtual servers
If you want to configure load balancing for traffic on a specific virtual local area network (VLAN), you can create a wildcarded virtual server with a listen policy that restricts it to processing traffic only on the specified VLAN.
To configure a wildcarded virtual server that listens to a specific VLAN by using the CLI
At the command prompt, type the following commands to configure a wildcarded virtual server that listens to a specific VLAN and verify the configuration:
add lb vserver <name> <serviceType> IPAddress * Port * -listenpolicy <expression> [-listenpriority <positive_integer>]
show vserver
Example:
add lb vserver Vserver-LB-vlan1 ANY -listenpolicy "CLIENT.VLAN.ID.EQ(2)" -listenpriority 10
show vserver Vserver-LB-vlan1
To configure a wildcarded virtual server that listens to a specific VLAN by using the GUI
-
Navigate to Traffic Management > Load Balancing > Virtual Servers.
-
Create a new virtual server or open an existing virtual server.
-
Specify a listen policy priority and expression.
After you have created this virtual server, you bind it to one or more services as described in Setting Up Basic Load Balancing.