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/ksh
ND_LOGDIR=LoadBalancer_Install_Dir/servers/logs/dispatcher
CLUSTER=9.26.126.103
INTERFACE=en0
NETMASK=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/sh
ND_LOGDIR=LoadBalancer_Install_Dir/servers/logs/dispatcher
CLUSTER=9.26.52.154
INTERFACE=hme0:1
RETURNADDRESS=9.26.52.156
RETURNINTERFACE=hme0:2
NETMASK=255.255.254.0

xxxx