User guide

17-20 E
XTREME
W
ARE
S
OFTWARE
U
SER
G
UIDE
S
ERVER
L
OAD
B
ALANCING
(SLB)
To create is the virtual IP VLAN, use the following commands:
create vlan sites
config vlan sites ipaddress 192.168.201.254 /24
All VIPs will be configured to use this subnet. There are no ports associated with this
VLAN.
The following commands create the VLAN servers and enable IP forwarding:
create vlan servers
config vlan servers ipaddress 192.168.200.254 /24
config vlan servers add ports 9-16
enable ipforwarding
The following series of commands creates a Web site. The site is defined as having 2
servers: 192.168.200.1 and 192.168.200.2, each with 2 services (HTTP and SSL). Two VIPs
are then created to point at the appropriate pools. As a default, round-robin is used to
load balance the services. Only one IP address is used for both VIPs; the difference is
the port number. Finally, port checking is enabled to ensure fault tolerance on each of
the servers.
create slb pool site1web
config slb site1 add 192.168.200.1:80
config slb site1 add 192.168.200.2:80
create slb pool site1ssl
config slb site1 add 192.168.200.1:443
config slb site1 add 192.168.200.2:443
create slb vip myweb pool site1web mode transparent 192.168.201.1:80
create slb vip myssl pool site1ssl mode transparent 192.168.201.1:443
enable slb node 192.168.200.1:80 tcp-port-check
enable slb node 192.168.200.2:80 tcp-port-check
enable slb node 192.168.200.1:443 tcp-port-check
enable slb node 192.168.200.2:443 tcp-port-check
The following series of commands creates a second Web site. This second site is similar
to the first example; the difference is that content checking is enabled on this site. For
this type of health checking, the server downloads a specified page (/testpage.htm) and
looks for a specific string in the content (test successful). If it finds the string, the
server considers the server up.