< Home

Web: Example for Configuring Load Balancing by Link Priority

This section provides an example for configuring load balancing by link priority for the FW to use the standby interface link to forward traffic when the active interface link is faulty or overloaded to improve transmission availability.

Networking Requirements

As shown in Figure 1, an enterprise has a 50M link connected to ISP1 and a 10M link connected to ISP2.

  • The enterprise requires that ISP1 link be used preferentially for traffic forwarding. When ISP1 link is overloaded (the threshold is 90%), ISP2 link can be used for traffic forwarding.

  • ISP2 link is charged by traffic (such as the 4G network). Therefore, you need to set ISP2 link to Down when the active interface link works properly.

Figure 1 Networking diagram of load balancing by link priority

Configuration Roadmap

The enterprise needs to use ISP1 link preferentially. Therefore, set the intelligent uplink selection mode to load balancing by link priority and set the priorities of ISP1 and ISP2 links respectively to 2 and 1. To ensure that ISP2 link is Up only when transmitting traffic, you need to configure the standby interface automatic shutdown function. To ensure that the FW can use other links to forward traffic when a link is faulty or overloaded, you need to configure health check and link overload protection functions.

  1. Optional: Configure the health check function. Configure a health check respectively for ISP1 and ISP2.
  2. Set the interface IP address, security zone, gateway, bandwidth, and overload protection threshold, and apply the health check respectively on the interfaces.

  3. Configure global route selection policies. Set the intelligent uplink selection mode to load balancing by link priority, configure the outbound interfaces on the FW connecting to ISP1 and ISP2 networks as intelligent uplink selection member interfaces, and set priorities for each interface.

  4. Configure a basic security policy to allow intranet users to access the Internet.

This example focuses on the configuration related to intelligent uplink selection. Configure other data such as NAT based on the actual networking.

Procedure

  1. Optional: Enable the health check function and create health check tasks for ISP1 and ISP2 links. Assume that the destination network segment of ISP1 is 3.3.10.0/24, and the destination network segment of ISP2 is 9.9.20.0/24.

    Choose Object > Health Check. Click Add in the Health Check List area to create a health check task for ISP1 link.

    Click Add to create a health check task for ISP2 link.

    Assume that 3.3.10.10 and 3.3.10.11 are known device addresses on the ISP1 network and that 9.9.20.20 and 9.9.20.21 are known device addresses on the ISP2 network.

    If the state remains down after the health check configuration is complete, check the health check configuration.

  2. Set IP and gateway addresses for GigabitEthernet 0/0/1 and GigabitEthernet 0/0/7, assign the interfaces to the Untrust zone, set the bandwidth values and overload protection thresholds for the links of the interfaces, and apply health check.

    Choose Network > Interface and click on the line of the interface to be configured.

  3. Configure an IP address for GigabitEthernet 0/0/3 and assign the interface to the Trust zone.

    Choose Network > Interface and click on the line of the interface to be configured.

  4. Configure a global route selection policy, set load balancing by link priority, and add GigabitEthernet 0/0/1 and GigabitEthernet 0/0/7 to the outgoing interface list.

    Choose Network > Route > Intelligent Uplink Selection. In the Global Routing Policy area, click Edit.

  5. Configure a Trust-to-Untrust interzone security policy to allow enterprise network users to access Internet resources. Assume that enterprise network users reside on 10.3.0.0/24.

    Choose Policy > Security Policy > Security Policy and click Add Security Policy to create a security policy.

Configuration Scripts

#
healthcheck enable
healthcheck name isp1_health
 destination 3.3.10.10 interface GigabitEthernet0/0/1 protocol tcp-simple destination-port 10001
 destination 3.3.10.11 interface GigabitEthernet0/0/1 protocol tcp-simple destination-port 10002
healthcheck name isp2_health
 destination 9.9.20.20 interface GigabitEthernet0/0/7 protocol tcp-simple destination-port 10003
 destination 9.9.20.21 interface GigabitEthernet0/0/7 protocol tcp-simple destination-port 10004
#
interface GigabitEthernet0/0/1
 ip address 1.1.1.1 255.255.255.0
 gateway 1.1.1.254
 bandwidth ingress 50000 threshold 90
 bandwidth egress 50000 threshold 90
 healthcheck isp1_health
#
interface GigabitEthernet0/0/3
 ip address 10.3.0.1 255.255.255.0
#
interface GigabitEthernet0/0/7
 ip address 2.2.2.2 255.255.255.0
 gateway 2.2.2.254
 bandwidth ingress 10000 threshold 90
 bandwidth egress 10000 threshold 90
 healthcheck isp2_health
#
 firewall zone trust
  set priority 85
  add interface GigabitEthernet0/0/3
#
firewall zone untrust
 set priority 5
 add interface GigabitEthernet0/0/1
 add interface GigabitEthernet0/0/7
#
 multi-interface
  mode priority-of-userdefine
  add interface GigabitEthernet0/0/1 priority 2
  add interface GigabitEthernet0/0/7
#
security-policy
 rule name policy_sec_trust_untrust
  source-zone trust
  destination-zone untrust
  source-address 10.3.0.0 mask 255.255.255.0
  action permit
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >