* Summary: ifconfig alias in rc.config
@ 1998-11-15 14:11 Ray Stell
0 siblings, 0 replies; only message in thread
From: Ray Stell @ 1998-11-15 14:11 UTC (permalink / raw)
To: tru64-unix-managers
Original question:
==================
> I want to add more than one alias to an interface in rc.config.
> Anybody know the syntax.
Responses:
==========
Tom Smith <smith@alum.mit.edu>
------------------------------
Based on the ifconfig man page, aliaslist is intended to indicate ranges
within the individual parts of the address. I think that you may want
the following syntax:
10.0.0.1 netmask 255.255.255.0 aliaslist 10.0.1-2.1
(editor: no, I just want to add two specific addresses as
aliases to an interface, I think this would add
many)
Mike Plante <plante@camosun.bc.ca>
----------------------------------
NUM_NETCONFIG="9"
MAX_NETDEVS="24"
NETDEV_0="tu0"
NETDEV_1="tu0"
NETDEV_2="tu0"
NETDEV_3="tu0"
NETDEV_4="tu0"
NETDEV_5="tu0"
NETDEV_6="tu0"
NETDEV_7="tu0"
NETDEV_8="tu0"
IFCONFIG_0="111.222.333.1 netmask 255.255.255.0 speed 100"
IFCONFIG_1="alias 111.222.333.4"
IFCONFIG_2="alias 111.222.333.5"
IFCONFIG_3="alias 111.222.333.8"
IFCONFIG_4="alias 111.222.333.9"
IFCONFIG_5="alias 111.222.333.13"
IFCONFIG_6="alias 111.222.333.19"
IFCONFIG_7="alias 111.222.333.14"
IFCONFIG_8="alias 111.222.333.18"
export NETDEV_0 NETDEV_1 NETDEV_2 NETDEV_3 NETDEV_4 NETDEV_5 NETDEV_6 NETDEV_7 NETDEV_8
export IFCONFIG_0 IFCONFIG_1 IFCONFIG_2 IFCONFIG_3 IFCONFIG_4 IFCONFIG_5
export IFCONFIG_6 IFCONFIG_7 IFCONFIG_8
(editor: very cool! thanks)
<managers@mannet.mcb.net>
-------------------------
Add the alias later in an rc script, such as:
echo "this file now being driven from rc3.d"
ifconfig tu0 alias 195.10.97.2 netmask 255.255.255.0
echo "################ aliases for 195 set ###############"
(editor: yep, that'll work)
===============================================================
Ray Stell stellr@vt.edu (540) 231-4109 KE4TJC 28^D
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-11-15 14:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-15 14:11 Summary: ifconfig alias in rc.config Ray Stell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox