Original question:
==================
> I want to add more than one alias to an interface in rc.config.
> Anybody know the syntax.
brosich_at_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_at_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_at_vt.edu (540) 231-4109 KE4TJC 28^D
Received on Mon Nov 16 1998 - 14:02:19 NZDT