Configuration procedure

  1. Configure IP addresses for interfaces.

    <LB> system-view
    [LB] interface gigabitethernet 1/0/1
    [LB-GigabitEthernet1/0/1] ip address 10.1.1.1 24
    [LB-GigabitEthernet1/0/1] quit
    [LB] interface gigabitethernet 1/0/2
    [LB-GigabitEthernet1/0/2] ip address 20.1.1.1 24
    [LB-GigabitEthernet1/0/2] quit
    
  2. Configure a link group:

    # Create the ICMP-type NQA template t1, and configure the NQA client to send the probe result to the feature that uses the template on a per-probe basis.

    [LB] nqa template icmp t1
    [LB-nqatplt-icmp-t1] reaction trigger per-probe
    [LB-nqatplt-icmp-t1] quit
    

    # Specify the default proximity probe method as t1, and set the network delay weight for proximity calculation to 200.

    [LB] loadbalance proximity
    [LB-lb-proximity] match default probe t1
    [LB-lb-proximity] rtt weight 200
    [LB-lb-proximity] quit
    

    # Create the link group lg, and enable the proximity feature.

    [LB] loadbalance link-group lg
    [LB-lb-lgroup-lg] proximity enable
    

    # Disable the NAT feature.

    [LB-lb-lgroup-lg] transparent enable
    [LB-lb-lgroup-lg] quit
    
  3. Configure links:

    # Create the link link1 with next hop address 10.1.1.2, and add it to the link group lg.

    [LB] loadbalance link link1
    [LB-lb-link-link1] router ip 10.1.1.2
    [LB-lb-link-link1] link-group lg
    [LB-lb-link-link1] quit
    

    # Create the link link2 with next hop address 20.1.1.2, and add it to link group lg.

    [LB] loadbalance link link2
    [LB-lb-link-link2] router ip 20.1.1.2
    [LB-lb-link-link2] link-group lg
    [LB-lb-link-link2] quit
    
  4. Create the link-IP virtual server vs with VSIP 0.0.0.0/0, specify its default master link group lg, and enable the virtual server.

    [LB] virtual-server vs type link-ip
    [LB-vs-link-ip-vs] virtual ip address 0.0.0.0 0
    [LB-vs-link-ip-vs] default link-group lg
    [LB-vs-link-ip-vs] service enable
    [LB-vs-link-ip-vs] quit