tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Ray Stell <stellr () vt ! edu>
To: tru64-unix-managers
Subject: Summary: ifconfig alias in rc.config
Date: Sun, 15 Nov 1998 14:11:00 +0000	[thread overview]
Message-ID: <96078728411919.tru64-unix-managers.marc@archive.invalid> (raw)

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

                 reply	other threads:[~1998-11-15 14:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox