From owner-freebsd-questions Thu Oct 2 02:08:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA15208 for questions-outgoing; Thu, 2 Oct 1997 02:08:43 -0700 (PDT) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA15200 for ; Thu, 2 Oct 1997 02:08:38 -0700 (PDT) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id SAA19426; Thu, 2 Oct 1997 18:38:19 +0930 (CST) Message-ID: <19971002183817.06778@lemis.com> Date: Thu, 2 Oct 1997 18:38:17 +0930 From: Greg Lehey To: Jose Monteiro Cc: Dan Busarow , freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig alias References: <34335abd.254404@mail.leirianet.pt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <34335abd.254404@mail.leirianet.pt>; from Jose Monteiro on Thu, Oct 02, 1997 at 08:31:00AM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Thu, Oct 02, 1997 at 08:31:00AM +0000, Jose Monteiro wrote: > No dia Tue, 30 Sep 1997 09:58:40 -0700 (PDT), escreveu o seguinte: > >> On Tue, 30 Sep 1997, Jose Monteiro wrote: >>> ifconfig_ed0="inet A.B.C.138 netmask 255.255.255.224" >>> ifconfig_ed0_alias0="inet A.B.C.139 netmask 255.255.255.255" >>> ifconfig ed0_alias0="inet A.B.C.140 netmask 255.255.255.255" >>> ifconfig ed0_alias0="inet A.B.C.141 netmask 255.255.255.255" >>> >>> Only the first and second IP alias (138, 139) go Up. The others stay >>> down. >> >> Make the additional aliases alias1, alias2, etc... > > I did. I've changed ifconfig lines in my rc.conf to: > > ifconfig_ed0="inet A.B.C.138 netmask 255.255.255.224" > ifconfig_ed0_alias0="inet A.B.C.139 netmask 255.255.255.255" > ifconfig ed0_alias1="inet A.B.C.140 netmask 255.255.255.255" > ifconfig ed0_alias2="inet A.B.C.141 netmask 255.255.255.255" > > But when i rebooted, the same thing happened: Only 138 and 139 wen Up. > The others stayed down. > > So I had to do it manualy as always: > > # ifconfig ed0 inet A.B.C.140 netmask 255.255.255.255 alias > # ifconfig ed0 inet A.B.C.141 netmask 255.255.255.255 alias > > Why can't I do this in rc.conf? Well, it would help if you also put in the _ between ifconfig and ed0 in the last two lines: ifconfig_ed0_alias1="inet A.B.C.140 netmask 255.255.255.255" ifconfig_ed0_alias2="inet A.B.C.141 netmask 255.255.255.255" ^ This one. You should be getting error messages from the startup scripts. Greg