ILB-HA

This is an example of how to set up ILB (port 80) for HA

def im intern0 netz = 10.1.15.1
intern0-ilb1 = 10.1.15.2
intern0-ilb2 = 10.1.15.3
extern0-ilb1 = 192.168.2.2
extern0-ilb2 = 192.168.2.3
server1 = 10.1.15.10
server2 = 10.1.15.11
vip = 192.168.2.1

LB1/2: routeadm -u -e ipv4-forwarding
LB1/2: ilbadm create servergroup -s server=10.1.15.10,10.1.15.11 httpsg1
LB1/2:ilbadm create-rule -ep -i vip=192.168.2.1,port=80,protocol=tcp -m lbalg=roundrobin,type=HALF-NAT,pmask=24 -o servergroup=httpsg1 rule1

LB1# dladm create-vnic -m vrrp -V 1 -A inet -l extern0 vnic1
LB1# ipadm create-addr -T static -d -a 192.168.2.1/24 vnic1/lb1
LB1# ipadm create-addr -T static -d -a 192.168.2.2/24 extern0
LB1# vrrpadm create-router -V 1 -A inet -l extern0 -p 255 vrrp1
LB1# dladm create-vnic -m vrrp -V 2 -A inet -l intern0 vnic2
LB1# ipadm create-addr -T static -d -a 10.1.15.1/24 vnic2/lb1
LB1# ipadm create-addr -T static -d -a 10.1.15.2/24 intern0
LB1# vrrpadm create-router -V 2 -A inet -l intern0 -p 255 vrrp2

LB2# dladm create-vnic -m vrrp -V 1 -A inet -l extern0 vnic1
LB2# ipadm create-addr -T static -d -a 192.168.2.1/24 vnic1/lb2
LB2# ipadm create-addr -T static -d -a 192.168.2.3/24 extern0
LB2# vrrpadm create-router -V 1 -A inet -l extern0 -p 100 vrrp1
LB2# dladm create-vnic -m vrrp -V 2 -A inet -l intern0 vnic2
LB2# ipadm create-addr -T static -d -a 10.1.15.1/24 vnic2/lb2
LB2# ipadm create-addr -T static -d -a 10.1.15.3/24 intern0
LB2# vrrpadm create-router -V 2 -A inet -l intern0 -p 100 vrrp2

Leave a Reply

Your email address will not be published. Required fields are marked *