Riverstone Networks WICT1-12 User Manual

Page 516

Advertising
background image

22-18 Riverstone Networks RS Switch Router User Guide Release 8.0

Web Caching

Web Hosting Configuration

Creating the Cache Group

You can specify either a range of contiguous IP addresses or a list of up to four IP addresses to define the servers when
the cache group is created. If you specify multiple servers, load balancing is based on the destination address of the
request. If any cache server fails, traffic is redirected to the other active servers.

The following example configures the “testweb1” caching policy for the “weblist1” cache group:

Note

If a range of IP addresses is specified, the range must be contiguous and contain
no more than 256 IP addresses.

Specifying the Client(s) for the Cache Group (Optional)

You can explicitly specify the hosts whose HTTP requests are or are not redirected to the cache servers. If you do not
explicitly specify these hosts, then all HTTP requests are redirected to the cache servers.

The following example specifies that HTTP requests from the address range 135.142.179.14 to 135.142.179.21 should
be redirected to the cache servers:

Redirecting HTTP Traffic on an Interface or Port

To start the redirection of HTTP requests to the cache servers, you need to apply the caching policy to a specific
outbound interface or port. This interface or port is typically an interface that connects to the Internet. If you apply the
caching policy to an interface, the interface should not be on the same subnet as the web cache servers.

Apply a caching policy to a port when redirecting bridged traffic. You should apply it to the port that leads to the web
server. L4 bridging must be enabled, and the clients, servers, and ports must belong to the same VLAN. In addition,
for 802.1Q trunk ports, you can specify a particular VLAN.

Note

By default, the RS redirects HTTP requests on port 80. Secure HTTP (https)
requests do not run on port 80, therefore these types of requests are not redirected
by the RS.

The following example applies the policy “testweb1” to port et.3.1:

rs(config)# web-cache testweb1 create server-list weblist1 range

“10.10.10.1 10.10.10.100”

rs(config)# web-cache testweb1 permit hosts range “135.142.179.14

135.142.179.21”

rs(config)# web-cache testweb1 apply port et.3.1

Advertising