From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728411933.tru64-unix-managers.marc@archive.invalid> From: Ray Stell Date: Mon, 16 Nov 1998 13:59:44 +0000 To: tru64-unix-managers Subject: Summary II: ifconfig alias in rc.config X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728411933 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 alias netmask (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 ------------------------------ >> 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