#!/bin/bash
#
# This is the configuration info for the testinit and testdestroy
# scripts. You should set these up to be some useful internet numbers
# that you can assign on a particular interface as aliases.
# Note that you must have aliasing compiled into the kernel.
#


#
# four alias numbers for a given interface. These are set up on host "A"
# These four should be usable if the net is a private net.
#
ETHA="eth0"			# your ethernet controller for the test
H1A="10.1.10.11"
H2A="10.1.10.12"
H3A="10.1.10.13"
H4A="10.1.10.14"

#
# four alias numbers for a given interface. These are set up on host "B"
# These four should be usable if the net is a private net.
#
ETHB="eth0"			# your ethernet controller for the test
H1B="10.1.20.11"
H2B="10.1.20.12"
H3B="10.1.20.13"
H4B="10.1.20.14"

if [ ${SOURCE} = "A" ]; then
  LOCAL_1=${H1A}
  LOCAL_2=${H2A}
  LOCAL_3=${H3A}
  LOCAL_4=${H4A}
  REMOTE_1=${H1B}
  REMOTE_2=${H2B}
  REMOTE_3=${H3B}
  REMOTE_4=${H4B}
  FROMA="output"
  FROMB="input"
  ETH=${ETHA}
elif [ ${SOURCE} = "B" ]; then
  LOCAL_1=${H1B}
  LOCAL_2=${H2B}
  LOCAL_3=${H3B}
  LOCAL_4=${H4B}
  REMOTE_1=${H1A}
  REMOTE_2=${H2A}
  REMOTE_3=${H3A}
  REMOTE_4=${H4A}
  FROMA="input"
  FROMB="output"
  ETH=${ETHB}
else
  echo "$0: usage $0 [ A | B ]";
  exit 1
fi
