|Skip Navigation Links|
|Exit Print View|
|Managing Oracle Solaris 11.1 Network Performance Oracle Solaris 11.1 Information Library|
This section describes the steps for setting up ILB to use a half-NAT topology to load balance traffic among two servers. See the NAT topology implementation in ILB Operation Modes.
You can assign the ILB Management rights profile to a role that you create. To create the role and assign the role to a user, see Initially Configuring RBAC (Task Map) in Oracle Solaris 11.1 Administration: Security Services.
The back-end servers are set up to use ILB as the default router in this scenario. This can be done by running the following commands on both servers.
# route add -p default 192.168.1.21
After executing this command, start the server applications on both servers. Assume that it is a TCP application listening on port 5000.
There are 2 servers, 192.168.1.50 and 184.108.40.206. A server group, srvgrp1, consisting of these two servers can be created by typing the following command.
# ilbadm create-sg -s servers=192.168.1.50,192.168.1.60 srvgrp1
A simple TCP level health check is used to detect if the server application is reachable. This check is done every 60 seconds. It will try at most 3 times and wait for at most 3 seconds between trials to see if a server is healthy. If all 3 trials fail, it will mark the server as dead.
# ilbadm create-hc -h hc-test=tcp,hc-timeout=3, \ hc-count=3,hc-inerval=60 hc-srvgrp1
Persistence (with 32 bits mask) is used in this rule. And the load balance algorithm is round robin. The server group srvgrp1 is used and the health check mechanism used is hc-srvgrp1. The rule can be created by typing the following command.
# ilbadm create-rule -e -p -i vip=10.0.2.20,port=5000 -m \ lbalg=rr,type=half-nat,pmask=32 \ -h hc-name=hc-srvgrp1 -o servergroup=srvgrp1 rule1_rr