We have a 4100 running DU4.0d which supports 40+ websites via virtual ips. The
webserver is Apache v1.2.6.
These IPs are currently setup via a script in /sbin/rc3.d of the form:
/sbin/ifconfig tu0 inet hosta.domain.org alias
/sbin/arp -s aa.bb.cc.dd 11:22:33:44:55 pub
sleep 1
/sbin/ifconfig tu0 inet hostb.domain.org alias
/sbin/arp -s aa.bb.cc.dd 11:22:33:44:55 pub
sleep 1 ^^^^^^^^^^^^^^^^^^
(** all ips are arp'd to the actual hw address of interface **)
:
The actual physical interfaces are setup in rc.config, as usual:
NUM_NETCONFIG="3"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1="tu1"
NETDEV_2="tu2"
IFCONFIG_0="[actual tu0 IP addr] netmask 255.255.255.0"
IFCONFIG_1="[actual tu1 IP addr] netmask 255.255.255.0"
IFCONFIG_2="[actual tu2 IP addr] netmask 255.0.0.0"
I am wondering if the correct way to do this would be simply to configure
all the virtual ips in rc.config, as follows:
NUM_NETCONFIG="43" (40 virtual plus 3 actual)
MAX_NETDEVS="50"
NETDEV_0="tu0"
NETDEV_1="tu0"
:
NETDEV_40="tu0"
NETDEV_41="tu1"
NETDEV_42="tu2"
IFCONFIG_0="[actual tu0 IP addr] netmask 255.255.255.0"
IFCONFIG_1="[1st virtual tu0 IP addr] netmask 255.255.255.0"
:
IFCONFIG_40="[40th virtual tu0 IP addr] netmask 255.255.255.0"
IFCONFIG_41="[actual tu1 IP addr] netmask 255.255.255.0"
IFCONFIG_42="[actual tu2 IP addr] netmask 255.0.0.0"
Would this work? Would it make the addresses available for the webservers to
connect to? (We use DNS, and all addresses are published in DNS)? It sounds
like we'd still have to run a script to do the arps - agreed?
TIA for any info you have!
--
Judith Reed
jreed_at_appliedtheory.com
(315) 453-2912 x335
Received on Fri Sep 18 1998 - 14:44:10 NZST