Huawei quidway s7700 Configuration Manual page 327

Smart routing switch
Hide thumbs Also See for quidway s7700:
Table of Contents

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - SPU
[SPU-lb-group-servergroup1-member-serverb] quit
[SPU-lb-group-servergroup1] member serverc
[SPU-lb-group-servergroup1-member-serverc] inservice standby
[SPU-lb-group-servergroup1-member-serverc] quit
[SPU-lb-group-servergroup1] member serverd
[SPU-lb-group-servergroup1-member-serverd] inservice standby
[SPU-lb-group-servergroup1-member-serverd] quit
Step 5 Configure session stickiness.
# Create the sticky group named stickygroup1, configure a static sticky entry, and perform
stickiness for the destination IP address.
[SPU] load-balance stickygroup stickygroup1 mask 255.255.255.0 destination-ip
[SPU-lb-stickygroup-stickygroup1] group servergroup1
[SPU-lb-stickygroup-stickygroup1] static client destination 20.20.20.2 member
servera
[SPU-lb-stickygroup-stickygroup1] quit
Step 6 Configure a Layer 7 classifier.
# Create the Layer 7 classifier named l7cls1 and configure the matching rule to match request
packets with the URL being slbha[w|W](.*).
[SPU] load-balance l7classifier l7cls1 or
[SPU-lb-l7classifier-l7cls1] rule match http url slbha[w|W](.*)
[SPU-lb-l7classifier-l7cls1] quit
Step 7 Configure a load balancing action profile.
# Create the load balancing action profile act1 and set the action to load balance in
servergroup1.
[SPU] load-balance action act1
[SPU-lb-action-act1] stickygroup stickygroup1
[SPU-lb-action-act1] quit
Step 8 Configure an ACL.
# Create ACL 3000 to permit the packets with the destination IP address being 20.20.20.1/24 to
pass through.
[SPU] acl number 3000
[SPU-acl-adv-3000] rule permit ip destination 20.20.20.1 0.0.0.255
[SPU-acl-adv-3000] quit
Step 9 Configure a Layer 3 classifier.
# Create the Layer 3 classifier l3cls1, set the matching rule to match ACL 3000, bind l3cls1 to
l7cls1 and act1.
[SPU] load-balance l3classifier l3cls1
[SPU-lb-l3classifier-l3cls1] l7classifier l7cls1 action act1
[SPU-lb-l3classifier-l3cls1] if-match acl 3000
[SPU-lb-l3classifier-l3cls1] nat outbound address-group 2
[SPU-lb-l3classifier-l3cls1] quit
Step 10 Configure a load balancing policy.
# Create the load balancing policy named lbp1, and bind l3cls1 to lbp1.
[SPU] load-balance policy lbp1
[SPU-lb-policy-lbp1] l3classifier l3cls1
[SPU-lb-policy-lbp1] quit
Step 11 Apply the load balancing policy.
# Apply the load balancing policy to Eth-Trunk 0.12 of the SPU.
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
6 Load Balancing Configuration
316

Advertisement

Table of Contents
loading

Table of Contents