Configuring Server Load Balancing

Configuration Examples

ip slb vservers PUBLIC_HTTP

Unrestricted Web virtual server

virtual 10.0.0.1 tcp www

Handle HTTP requests

serverfarm PUBLIC

Use public Web server farm

inservice

 

 

ip slb vservers RESTRICTED_HTTP

Restricted HTTP virtual server

virtual 10.0.0.1 tcp www

Handle HTTP requests

serverfarm RESTRICTED

Use restricted Web

server farm

client 10.4.4.0 255.255.255.0

Only allow clients

from 10.4.4.x

sticky 60 idle 120 group 1

Couple connections

with RESTRICTED_SSL

inservice

 

 

ip slb vservers RESTRICTED_SSL

Restricted SSL virtual server

virtual 10.0.0.1 tcp https

Handle SSL requests

 

serverfarm RESTRICTED

Use restricted Web

server farm

client 10.4.4.0 255.255.255.0

Only allow clients

from 10.4.4.x

sticky 60 idle 120 group 1

Couple connections

with RESTRICTED_HTTP

inservice

 

 

NAT Configuration Example

This section provides a configuration example based on the network layout shown in Figure 25.

Figure 25 IOS SLB NAT Topology

Server 1

Server 2

Server 3

Server 4

10.1.1.1

10.2.1.1

10.3.1.1

10.4.1.1

 

 

 

HTTP=80

 

 

 

HTTP=80

 

 

 

HTTP=80

 

 

HTTP1 = 8080

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HTTP2 = 8081

 

 

 

 

 

 

 

 

 

 

 

 

 

 

HTTP3 = 8082

Switch A

Switch B

 

Switch C

 

 

 

 

 

 

 

 

Clients

33459

The topology in Figure 25 has four Web servers, configured as follows:

Servers 1, 2, and 3 are running single HTTP server applications listening on port 80.

Cisco IOS IP Configuration Guide

IPC-153

Page 199
Image 199
Cisco Systems 78-11741-02 manual NAT Configuration Example, IPC-153