tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* Summary II: ifconfig alias in rc.config
@ 1998-11-16 13:59 Ray Stell
  0 siblings, 0 replies; only message in thread
From: Ray Stell @ 1998-11-16 13:59 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.


brosich@uts.univ.trieste.it 
---------------------------
add the following line in the file /etc/inet.local
ifconfig <ethernet-device> alias <ip-address> netmask <netmasking>

(editor: comments from inet.local
# Examples of things to put in here would be pfconfig,
# adding aliases for existing IP addresses, etc.

(editor: this looks like what the developers had in mind as an 
         alternative to the rc3.d deal)


Tom Smith <smith@alum.mit.edu>
------------------------------
>>         10.0.0.1 netmask 255.255.255.0 aliaslist 10.0.1-2.1

The above adds exactly the 2 in your original post: 10.0.1.1 and
10.0.2.1. 

(editor: sorry for my public misinterpretation)


That can also be done with:

        10.0.0.1 netmask 255.255.255.0 aliaslist 10.0.1,2.1

If your list of aliases is disjoint, that method (aliaslist) is more
difficult, but if you're emumerating host addresses in the same subnet
it works reasonably well.

> NETDEV_0="tu0"
> NETDEV_1="tu0"
> NETDEV_2="tu0"
> NETDEV_3="tu0"

This could cause problems with some software that uses rc.config to
construct a list of interfaces. I'd instead use the third method of
putting the "ifconfig tu0 alias" commands in an rc3.d script. 
===============================================================
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-16 13:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-16 13:59 Summary II: 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