* How to configure virtual IPs?
@ 1998-09-18 14:42 Judith Reed
0 siblings, 0 replies; only message in thread
From: Judith Reed @ 1998-09-18 14:42 UTC (permalink / raw)
To: tru64-unix-managers
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@appliedtheory.com
(315) 453-2912 x335
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-09-18 14:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-09-18 14:42 How to configure virtual IPs? Judith Reed
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox