by Ras
23. December 2011 02:44
Below is an example of setting up load balancing for two Web servers with SLB configuration on a Cisco switch :
!— HTTP Serverfarm configuration.
ip slb serverfarm HTTPFARM
predictor roundrobin
real 10.1.1.10
inservice
!
real 10.1.1.11
inservice
!
!— HTTP Virtual configuration.
!— Important: Config Loopback address on HTTP Server’s with Virtual address.
ip slb vserver HTTPFARM
virtual 172.17.1.10 tcp http service http
serverfarm HTTPFARM
inservice
!— Client Side Vlan.
interface Vlan100
ip address 172.17.1.1 255.255.255.0
!
!— HTTP Servers Vlan.
!— Important: Configure the default gateway of the HTTP Servers to this address.
interface Vlan200
ip address 10.1.1.1 255.255.255.0