Date: Thu, 2 Oct 1997 18:38:17 +0930 From: Greg Lehey <grog@lemis.com> To: Jose Monteiro <jm@pluriproj.pt> Cc: Dan Busarow <dan@dpcsys.com>, freebsd-questions@FreeBSD.ORG Subject: Re: ifconfig alias Message-ID: <19971002183817.06778@lemis.com> In-Reply-To: <34335abd.254404@mail.leirianet.pt>; from Jose Monteiro on Thu, Oct 02, 1997 at 08:31:00AM %2B0000 References: <Pine.UW2.3.95.970930095758.9140C-100000@cedb> <34335abd.254404@mail.leirianet.pt>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971002183817.06778>