User guide
E
XTREME
W
ARE
S
OFTWARE
U
SER
G
UIDE
17-21
A
DVANCED
SLB A
PPLICATION
E
XAMPLE
create slb pool site2web
config slb site2web add 192.168.200.5:80
config slb site2web add 192.168.200.6:80
create slb pool site2ssl
config slb site2ssl add 192.168.200.5:443
config slb site2ssl add 192.168.200.6:443
create slb vip myweb2 pool site2web mode transparent 192.168.201.3:80
create slb vip myssl2 pool site2ssl mode transparent 192.168.201.3:443
enable slb vip myweb2 service-check
config slb vip myweb2 service-check http url “/testpage.htm”
match-string “test successful”
The following series of commands creates a third Web site. This example creates 1 pool
with a wildcard port specified. This means that the pool allows any port that is sent to
it by the VIP. All five servers respond to requests on both port 80 and port 443.
create slb pool site3web
config slb site3web add 192.168.200.7:0
config slb site3web add 192.168.200.8:0
config slb site3web add 192.168.200.9:0
config slb site3web add 192.168.200.10:0
config slb site3web add 192.168.200.11:0
create slb vip myweb3 pool site3web mode transparent 192.168.201.4:80
create slb vip myssl3 pool site3web mode transparent 192.168.201.4:443
The following series of commands creates an FTP site. The site is defined as having two
servers: 192.168.200.3 and 192.168.200.4. Only FTP is being serviced by the servers. The
two different VIPs and port numbers refer to the control and data channels used by the
FTP service. Two VIPs are then created to point at the appropriate pools.
As with the first site, the default load balancing method (round-robin) is used. Layer 7
health checking is used on the ftpc VIP. By using health checking, the switch logs in to
the site as user test with the password testpass. If the login is successful, the server is
labeled as “up” and is allowed to participate in load balancing. The account and
password must be set up on all FTP servers.
create slb pool ftp1c
config slb ftp1c add 192.168.200.3:21
config slb ftp1c add 192.168.200.4:21
create slb pool ftp1d
config slb ftp1d add 192.168.200.3:20
config slb ftp1d add 192.168.200.4:20
create slb vip ftpc pool ftp1c mode transparent 192.168.201.2:21
create slb vip ftpd pool ftp1d mode transparent 192.168.201.2:20