Configuration procedure

  1. Configure IP addresses for interfaces.

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

    # Create the link link1 with next hop address 10.1.1.2.

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

    # Create the link link2 with next hop address 20.1.1.2.

    [LB] loadbalance link link2
    [LB-lb-link-link2] router ip 20.1.1.2
    [LB-lb-link-link2] quit
    
  3. Create a DNS server pool named dsp.

    [LB] loadbalance dns-server-pool dsp
    [LB-lb-dspool-dsp] quit
    
  4. Configure DNS servers:

    # Create a DNS server named ds1, configure its IP address as 10.1.2.100, assign it to DNS server pool dsp, and associate it with link link1.

    [LB] loadbalance dns-server ds1
    [LB-lb-ds-ds1] ip address 10.1.2.100
    [LB-lb-ds-ds1] dns-server-pool dsp
    [LB-lb-ds-ds1] link link1
    [LB-lb-ds-ds1] quit
    

    # Create a DNS server named ds2, configure its IP address as 20.1.2.100, assign it to DNS server pool dsp, and associate it with link link2.

    [LB] loadbalance dns-server ds2
    [LB-lb-ds-ds2] ip address 20.1.2.100
    [LB-lb-ds-ds2] dns-server-pool dsp
    [LB-lb-ds-ds2] link link2
    [LB-lb-ds-ds2] quit
    
  5. Configure a transparent DNS proxy:

    # Create a UDP transparent DNS proxy named dns-proxy1, configure its IP address as 0.0.0.0, specify DNS server pool dsp as its default DNS server pool, and enable the transparent DNS proxy.

    [LB] loadbalance dns-proxy dns-proxy1 type udp
    [LB-lb-dp-udp-dp] ip address 0.0.0.0 0 
    [LB-lb-dp-udp-dp] default dns-server-pool dsp
    [LB-lb-dp-udp-dp] service enable
    [LB-lb-dp-udp-dp] quit