Thanks to everyone who responded so quickly. In 5.1 (and possibly all
versions of Tru64) you must put the alias first.
So in rc.config where I had:
IFCONFIG_2="192.168.1.82 alias"
I changed it to
IFCONFIG_2="alias 192.168.1.82"
and it worked just fine. Many people suggested hard coding this into inet
script itself, but that just isn't neccessary since it gets its variables
from rc.config as illustrated by someone else below.
For the record having the alias after the IP address works fine in all
earlier version of Tru64. It may never have been the 'correct' way to do
it and they tightened up what they allow in this newer version.
Thanks again to everyone!
-Ed Silver
===================================================
I thought it was
# ifconfig tu1 alias 192.168.1.82
and not
# ifconfig tu1 192.168.1.82 alias
because rc.config is read by /sbin/init.d/inet and executes ifconfig
$NETDEV_1 $IFCONFIG_1
(from memory)
===================================================
ORIGINAL POST:
We've been experimenting with Tru64 5.1 PatchKit - T64V51AS0002.
In past versions to add multiple IP's to one machine we would modify
rc.config and reboot. But for some reason we are unable to do this on
this particular box. The only thing I can think of is that the process
has changed in 5.1, but I can't find anything in the docs about it.
We modified rc.config and added the IP addresses below:
HOSTNAME="my.hostname.com"
MAX_NETDEVS="11"
NETDEV_0="tu1"
NETDEV_1="tu1"
NETDEV_2="tu1"
NETDEV_3="tu1"
NETDEV_4="tu1"
NETDEV_5="tu1"
NETDEV_6="tu1"
NETDEV_7="tu1"
NETDEV_8="tu1"
NETDEV_9="tu1"
NETDEV_10="tu1"
IFCONFIG_0="192.168.1.7 netmask 255.255.255.0"
IFCONFIG_2="192.168.1.82 alias"
IFCONFIG_3="192.168.1.83 alias"
IFCONFIG_4="192.168.1.84 alias"
IFCONFIG_5="192.168.1.85 alias"
IFCONFIG_6="192.168.1.86 alias"
IFCONFIG_7="192.168.1.87 alias"
IFCONFIG_8="192.168.1.88 alias"
IFCONFIG_9="192.168.1.89 alias"
IFCONFIG_10="192.168.1.90 alias"
And than we export this same list as such:
export HOSTNAME
export NETDEV_0
export NETDEV_1
export NETDEV_2
export NETDEV_3
export NETDEV_4
export NETDEV_5
export NETDEV_6
export NETDEV_7
export NETDEV_8
export NETDEV_9
export NETDEV_10
export IFCONFIG_1
export IFCONFIG_2
export IFCONFIG_3
export IFCONFIG_4
export IFCONFIG_5
export IFCONFIG_6
export IFCONFIG_7
export IFCONFIG_8
export IFCONFIG_9
export IFCONFIG_10
But when the box boots it gives errors that it cannot configure these
aliases. Any ideas what we are doing wrong. These IP addresses are
behind our firewall and NAT'd to real IPs, but I can't imagine that is the
trouble.
Any help is appreciated.
-Ed Silver
Received on Tue Apr 24 2001 - 12:20:10 NZST