< Home

Web: Example for Configuring Active/Standby Backup by Link Priority

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

Networking Requirements

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

  • The enterprise requires that the two ISP1 links be used preferentially to forward Internet access traffic and ISP2 link be used only when both ISP1 links are faulty.

  • The tax declaration service is forwarded on the ISP2 link preferentially. When the ISP2 link is faulty, the tax declaration service is forwarded on the ISP1 link.

Figure 1 Networking diagram of active/standby backup by link priority

Configuration Roadmap

The enterprise needs to use ISP1 link preferentially. Therefore, set the global intelligent uplink selection mode to load balancing by link priority and set the priorities of ISP1 and ISP2 links respectively to 2 and 1. The tax declaration service needs to use the ISP2 link preferentially. Therefore, configure intelligent uplink selection based on policy-based routes for the tax declaration application, set the link selection mode to active/standby backup by link priority, and set the priority of ISP2 link to 2 and priorities of two ISP1 links to 1. To ensure that the FW can use the standby interface link to forward traffic when the active interface link is faulty, configure the health check function.

  1. Configure the health check function. Configure a health check respectively for ISP1 and ISP2.

  2. Set the interface IP address, security zone, gateway, and bandwidth, and apply the health check respectively on the interfaces.

  3. Configure global route selection policies. Set the intelligent uplink selection mode to active/standby backup by link priority, add interfaces GE0/0/1 and GE0/0/2 to interface group ifgroup1, and configure interface group ifgroup1 and interface GE0/0/7 both as intelligent uplink selection members. Set priorities for interface group ifgroup1 and interface GE0/0/7. The priorities of both GE0/0/1 and GE0/0/2 are the same as that of interface group ifgroup1.

  4. Configure intelligent uplink selection based on policy-based routes. Configure a policy-based route for the tax declaration application, set the intelligent uplink selection mode to active/standby backup by link priority, and set priorities for interface group ifgroup1 and interface GE0/0/7.

  5. 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 GigabitEthernet 0/0/1 on ISP1 link.

    Click Add to create a health check task for GigabitEthernet 0/0/2 on ISP1 link.

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

    Assume that the addresses from 3.3.10.10 to 3.3.10.13 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, GigabitEthernet 0/0/2, and GigabitEthernet 0/0/7, assign the interfaces to the Untrust zone, set the bandwidth values 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. Create interface group ifgroup1 and add GigabitEthernet 0/0/1 and GigabitEthernet 0/0/2 to it.

    Choose Network > Route > Intelligent Uplink Selection > Interface Group and click Add.

  5. Configure a global route selection policy, set active/standby backup by link priority, and add interface group ifgroup1 and GigabitEthernet 0/0/7 to the outgoing interface list.

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

  6. Customize a tax declaration application. In this example, the IP address and port of the application server are 8.8.8.8 and 20001, respectively.

    Choose Object > Application > Application and click Add.

  7. Configure a policy-based route for the tax declaration application and set active/standby backup by link priority.

    Choose Network > Route > Intelligent Uplink Selection. In the Policy-based Route area, click Add.



  8. 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_01
 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 isp1_health_02
 destination 3.3.10.12 interface GigabitEthernet0/0/2 protocol tcp-simple destination-port 10001
 destination 3.3.10.13 interface GigabitEthernet0/0/2 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
 bandwidth egress 50000
 healthcheck isp1_health_01
#
interface GigabitEthernet0/0/2
 ip address 1.1.2.2 255.255.255.0
 gateway 1.1.2.254
 bandwidth ingress 50000
 bandwidth egress 50000
 healthcheck isp1_health_02
#
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
 bandwidth egress 10000
 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/2
 add interface GigabitEthernet0/0/7
#
sa
 user-defined-application name UD_tax_system
  rule name 1
   ip-address 8.8.8.8 32
   port 20001
#
interface-group 0 name ifgroup1
 add interface GigabitEthernet0/0/1
 add interface GigabitEthernet0/0/2
#
 multi-interface
  mode priority-of-userdefine
  add interface GigabitEthernet0/0/7
  add interface-group ifgroup1 priority 2
#
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
#
policy-based-route
 rule name tax_system
  source-zone trust
  application app UD_tax_system
  action pbr egress-interface multi-interface
   mode priority-of-userdefine
   add interface GigabitEthernet0/0/7 priority 2
   add interface-group ifgroup1
#
return
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >