beautypg.com

HP Traffic Director sa7220 User Manual

Page 231

background image

C H A P T E R 6

e-Commerce Appliance Scenarios

219

Add HTTP Service and VIP

1. To add HTTP service (with a virtual IP address of 10.1.1.201 on

port 80) to policy group oprtest, type this command:

HP SA8220/config/policygroup/oprtest#

service create OPR vip 30.1.1.201 port 80

This command creates a new service on the SA8220, using the
HTTP protocol, at IP address 30.1.1.201, listening on TCP port
80.

2. To move the prompt, type this command:

HP SA8220/config/policygroup/oprtest#service OPR

Add Servers to the OPR Service

1. To add the server “Serv1.com” to the OPR service, type this

command:

HP SA8220/config/policygroup/oprtest/service/

OPR#server create serv1.prime.com port 80

Server serv1.prime.com port 80 has been created.

This command tells the SA8220 that serv1.prime.com can fulfill
requests arriving at 10.1.1.201 on port 80.

2. To move the prompt, type this command:

HP SA8220/config/policygroup/oprtest/service/

OPR#serv1.prime.com port 80

NOTE: We recommend
that you test the
connectivity using
Brokered mode before
switching to OPR mode.
Verify that the VIP is
accessible from the client
before enabling OPR
mode.

3. Finish by typing this command:

HP SA8220/config/policygroup/oprtest/service/

OPR/serv1.prime.com/port/80#mode opr

This command allows client addresses to be forwarded to the
server rather than to the SA8220's address.