Variables
First, we set up a script for initializing some common variables, which is then included by the other scripts. This script is shown in Example 11-8.
Example 11-8 LoadBalancer_Install_Dir/bin/variables script for MAC forwarding
#!/bin/kshND_LOGDIR=LoadBalancer_Install_Dir/servers/logs/dispatcherCLUSTER=9.26.126.103INTERFACE=en0NETMASK=255.255.254.0
For NAT, you need to provide a variable for the return address, as shown in Example 11-9. We are using bash syntax for Solaris 9.
Example 11-9 LoadBalancer_Install_Dir/bin/variables script for NAT forwarding
#!/bin/shND_LOGDIR=LoadBalancer_Install_Dir/servers/logs/dispatcherCLUSTER=9.26.52.154INTERFACE=hme0:1RETURNADDRESS=9.26.52.156RETURNINTERFACE=hme0:2NETMASK=255.255.254.0
xxxx