C H A P T E R 18 Server Load Balancing (SLB)
389
Create the VLANs, using these commands:
create vlan inside
create vlan server
The VLAN inside connects to the gateway and the VLAN server
contains all of the load balanced servers.
The gateway is connected to the VLAN inside, using these
commands:
configure inside ipaddress 1.10.0.2 /16
configure inside add port 10
Connect the servers to the VLAN server on ports 4-8, using these
commands:
configure server ipaddress 1.205.0.1 /16
configure server add port 4-8
Two servers are connected
to each High Availability
switch.
Enable IP forwarding, create a server pool called testpool1, and add
two servers to testpool1 using TCP port 80, using these commands:
enable ipforwarding
create slb pool testpool1
configure slb pool testpool1 add 1.205.1.1:80
configure slb pool testpool1 add 1.205.1.2:80
Create SLB VIP addresses for the two Web sites (site1 and site2)
and associate the server pool testpool with them, using these
commands:
create slb vip site1 pool testpool1 mode
transparent 1.10.1.1:80
create slb vip site2 pool testpool1 mode
transparent 1.10.1.2:80
Then create testpool2 and add 1.206.1.1:80 and 1.206.1.2:80 to it.
Create an identical SLB for testpool2.
Then, enable SLB and configure it for the appropriate VLANs
(client connections enter from the VLAN inside), using these
commands:
enable slb