Original question:
==================
> I want to add more than one alias to an interface in rc.config.
> Anybody know the syntax.
Responses:
==========
Tom Smith <smith_at_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_at_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_at_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_at_vt.edu (540) 231-4109 KE4TJC 28^D
Received on Sun Nov 15 1998 - 14:11:56 NZDT