Go to main content

Configuring an Oracle® Solaris 11.4 System as a Router or a Load Balancer

Exit Print View

Updated: November 2020
 
 

How to Configure ILB for High Availability by Using the DSR Topology

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. Configure both the primary and standby (passive) load balancers to have the same set up.
    $ ilbadm create-servergroup -s server=203.0.113.1,203.0.113.2 sg1
    $ ilbadm create-rule -i vip=198.51.100.3,port=9001 \
       -m lbalg=hash-ip-port,type=DSR -o servergroup=sg1 rule1
  2. Configure Load Balancer 1 to serve as the primary load balancer.
    LB1$ dladm create-vnic -m vrrp -V 1 -A inet -l eth0 vnic1
    LB1$ vrrpadm create-router -V 1 -A inet -l eth0 -p 255 vrrp1
    LB1$ ipadm create-ip vnic1
    LB1$ ipadm create-addr -d -a 198.51.100.3/24 vnic1

    The priority of the vrrp1 router is set to be 255. The priority value makes the router the master router and hence the active load balancer.

  3. Configure Load Balancer 2 to serve as the standby load balancer.
    LB2$ dladm create-vnic -m vrrp -V 1 -A inet -l eth0 vnic1
    LB2$ vrrpadm create-router -V 1 -A inet -l eth0 -p 100 vrrp1
    LB2$ ipadm create-ip vnic1
    LB2$ ipadm create-addr -d -a 198.51.100.3/24 vnicl

      The preceding configuration provides protection against the following failure scenarios:

    • If Load Balancer 1 fails, Load Balancer 2 becomes the primary load balancer. Load balancer 2 then takes over address resolution for the VIP 198.51.100.3 and handles all the packets from clients with the destination IP address 198.51.100.3.

      When Load Balancer 1 recovers, Load Balancer 2 returns to standby mode.

    • If one or both of Load Balancer 1's interfaces fail, Load Balancer 2 takes over as the primary load balancer. Load Balancer 2 then takes over address resolution for VIP 198.51.100.3 and handles all the packets from clients with the destination IP address 198.51.100.3.

      When both of Load Balancer 1's interfaces are healthy, Load Balancer 2 returns to standby mode.