From owner-freebsd-questions Sun Jan 5 16:20:49 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id QAA24765 for questions-outgoing; Sun, 5 Jan 1997 16:20:49 -0800 (PST) Received: from mail.MCESTATE.COM (vince@mail.MCESTATE.COM [206.171.98.50]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id QAA24753 for ; Sun, 5 Jan 1997 16:20:47 -0800 (PST) Received: from localhost (vince@localhost) by mail.MCESTATE.COM (8.8.3/8.8.3) with SMTP id QAA04885; Sun, 5 Jan 1997 16:17:19 -0800 (PST) Date: Sun, 5 Jan 1997 16:17:18 -0800 (PST) From: Vincent Poy To: Darius Moos cc: questions@freebsd.org Subject: Re: FreeBSD ethernet alias setup In-Reply-To: <3.0.32.19970105143359.0069d1f8@cyclone.degnet.baynet.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 5 Jan 1997, Darius Moos wrote: > > I know, I lost the reply and couldn't find it. I found this in > >the FreeBSD Mailig List archives, would this also work? > > Not as is. Some little modifications are needed under FreeBSD-2.1.5: I thought that was under 2.1.5R. > When chaining alias-arguments in one ifconfig-command, ifconfig only > executes the first alias, the trailing aliases are dropped. So every > alias needs an own ifconfig-call. You would have to shift through the > words of the line > >alias_ed1="alias x.x.x.x alias y.y.y.y alias z.z.z.z" > and extract the appropriate arguments for ifconfig in the for-loop. I tried the original method last night and came to the same conclusion. It seems like the word alias would have to be somewhere in the ifconfig line at the end of the line for it to work but your method does work. How do I find out what ip's the interface is configured for since ifconfig ed1 would only show the primary ip number. Cheers, Vince - vince@MCESTATE.COM - vince@GAIANET.NET Unix Networking Operations GaiaNet Corporation - M & C Estate Beverly Hills, California USA 90210