From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078728411919.tru64-unix-managers.marc@archive.invalid> From: Ray Stell Date: Sun, 15 Nov 1998 14:11:00 +0000 To: tru64-unix-managers Subject: Summary: ifconfig alias in rc.config X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078728411919 Original question: ================== > I want to add more than one alias to an interface in rc.config. > Anybody know the syntax. Responses: ========== Tom Smith ------------------------------ 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 ---------------------------------- 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) ------------------------- 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