Example For Configuring Layer 7 Server Load Balancing In Dnat Mode - Huawei quidway s7700 Configuration Manual

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

Advertisement

Quidway S7700 Smart Routing Switch
Configuration Guide - SPU
6.6.4 Example for Configuring Layer 7 Server Load Balancing in
DNAT Mode
This example describes how to configure Layer 7 server load balancing in DNAT mode to
improve service processing capabilities of servers.
Networking Requirements
As shown in
server group. The load balancing group provides HTTP services through a virtual IP address.
The user IP address is 10.10.10.2, the virtual IP address is 20.20.20.2:80, and the IP addresses
of the four servers are 192.168.20.1:80, 192.168.20.2:4002, 192.168.20.3:80, and
192.168.20.4:8080. The processing capabilities of each server such as the CPU, memory, and
performance are different. Server C is the backup server of Server A and Server D is the backup
server of Server B. The requirements are as follows:
l
l
l
The Switch is connected to the Internet through GE 3/0/0 and the SPU is installed in slot 5 of
the Switch.
GE 3/0/1, GE 3/0/2, GE 3/0/3, and GE 3/0/4 of the Switch are connected to ServerA, ServerB,
ServerC, and ServerD respectively.
Issue 01 (2011-07-15)
forward-mode dnat
member serverc
member port 80
inservice
member serverd
member port 8080
inservice
probe probe1
#
load-balance action act1
group servergroup1 backup servergroup2
#
load-balance l7classifier l7cls1 or
match any
#
load-balance ip interface Eth-Trunk 0.2
#
load-balance l3classifier l3cls1
l7classifier l7cls1 action act1
nat outbound address-group 2
if-match acl 3000
#
load-balance policy lbp1
l3classifier l3cls1
#
return
Figure
6-11, a user accesses servers. There are four servers, which constitute a
The server with greater processing capabilities receives more service requests.
The return traffic of servers passes through the load balancing device.
After the master server fails, the load balancing device randomly selects an available server
from backup servers.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
6 Load Balancing Configuration
299

Advertisement

Table of Contents
loading

Table of Contents