Huawei quidway s7700 Configuration Manual page 342

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

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - SPU
Issue 01 (2011-07-15)
[SPU-XGigabitEthernet0/0/2] eth-Trunk 0
[SPU-XGigabitEthernet0/0/2] quit
2.
Configure a NAT address pool on the SPU.
[SPU] nat address-group 2 33.33.33.33 33.33.33.250
3.
Configure servers.
# Create the servers s31 and s32 and configure them to communicate with real servers
s31 and s32.
[SPU] load-balance member s31
[SPU-lb-member-s31] ip address 100.100.100.8
[SPU-lb-member-s31] quit
[SPU] load-balance member s32
[SPU-lb-member-s32] ip address 100.100.100.10
[SPU-lb-member-s32] quit
4.
Configure a server group.
# Configure a server group sg31 and bind s31 and s32 to sg31.
[SPU] load-balance group sg31
[SPU-lb-group-sg31] member s31
[SPU-lb-group-sg31-member-s31] inservice
[SPU-lb-group-sg31-member-s31 quit
[SPU-lb-group-sg31] member s32
[SPU-lb-group-sg31-member-s32] inservice
[SPU-lb-group-sg31-member-s32] quit
[SPU-lb-group-sg31] quit
5.
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 html.
[SPU] load-balance l7classifier l7 and
[SPU-lb-l7classifier-l7] rule 1 match http url html
[SPU-lb-l7classifier-l7] quit
6.
Configure a load balancing action profile.
# Create the load balancing action profile act3 and set the action to load balance in
sg31.
[SPU] load-balance action act3
[SPU-lb-action-act3] group sg31
[SPU-lb-action-act3] quit
7.
Configure an ACL.
# Create ACL 3007 to permit the packets with the destination IP address being
3.3.3.3/24 to pass through.
[SPU] acl number 3007
[SPU-acl-adv-3007] rule permit ip destination 3.3.3.3 0.0.0.255
[SPU-acl-adv-3007] quit
8.
Configure a Layer 3 classifier.
# Create the Layer 3 classifier l3, set the matching rule to match ACL 3007, and bind
l3 to l7 and act3.
[SPU] load-balance l3classifier l3
[SPU-lb-l3classifier-l3] l7classifier l7 action act3
[SPU-lb-l3classifier-l3] nat outbound address-group 2
[SPU-lb-l3classifier-l3] if-match acl 3007
[SPU-lb-l3classifier-l3] quit
9.
Configure a load balancing policy.
# Create the load balancing policy named lp and bind lp to l3.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
6 Load Balancing Configuration
331

Advertisement

Table of Contents
loading

Table of Contents