From owner-freebsd-questions Thu Oct 2 02:26:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA15781 for questions-outgoing; Thu, 2 Oct 1997 02:26:26 -0700 (PDT) Received: from caliban.dihelix.com (caliban.dihelix.com [198.180.136.122]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA15775 for ; Thu, 2 Oct 1997 02:26:22 -0700 (PDT) Received: (from langfod@localhost) by caliban.dihelix.com (8.8.7/8.8.3) id XAA06005; Wed, 1 Oct 1997 23:25:14 -1000 (HST) Message-Id: <199710020925.XAA06005@caliban.dihelix.com> Subject: Re: ifconfig alias In-Reply-To: <34335abd.254404@mail.leirianet.pt> from Jose Monteiro at "Oct 2, 97 08:31:00 am" To: jm@pluriproj.pt Date: Wed, 1 Oct 1997 23:25:14 -1000 (HST) Cc: dan@dpcsys.com, freebsd-questions@FreeBSD.ORG From: "David Langford" X-blank-line: This space intentionaly left blank. X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Personally I never like doing this in rc.conf. Granted I have a machine with about 300 aliases so this make rc.conf a bit unwieldly. What I did back when was to make a file called netstart.local and it got sourced at the end of netstart. The other thing to always be careful of that your rc files match each other version wise. In other words if you update you rc.conf from the source tree be sure that you also grab netstart et al at the same time. -David >>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? >Jose