From owner-freebsd-stable Thu Jul 11 14:12:37 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24F1D37B4A2 for ; Thu, 11 Jul 2002 14:12:27 -0700 (PDT) Received: from zpfe.com (dev06.eqp.zpfe.com [209.46.51.22]) by mx1.FreeBSD.org (Postfix) with SMTP id F185B43E54 for ; Thu, 11 Jul 2002 14:12:25 -0700 (PDT) (envelope-from stevep-hv@zpfe.com) Received: (qmail 3929 invoked from network); 11 Jul 2002 21:12:09 -0000 Received: from unknown (HELO PUFFY.zpfe.com) (65.203.84.227) by dev06.eqp.zpfe.com with SMTP; 11 Jul 2002 21:12:09 -0000 Message-Id: <5.1.0.14.2.20020711161023.03cd74b8@wheresmymailserver.com> X-Sender: (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 11 Jul 2002 16:11:36 -0500 To: "Jack L. Stone" , stable@FreeBSD.ORG From: Steve Peterson Subject: Re: 4.6 & IP aliases / ifconfig In-Reply-To: <3.0.5.32.20020711094127.02e79b20@mail.sage-one.net> References: <5.1.0.14.2.20020711085737.01e32ff0@magpie.zpfe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well, there it is. Hard to believe I missed that one. Thanks for the pointers to the docs, everyone. S At 09:41 AM 7/11/2002 -0500, Jack L. Stone wrote: >At 09:06 AM 7.11.2002 -0500, Steve Peterson wrote: > >Just upgraded my server box from 4.4 to 4.6 via source, and my aliased IP > >addresses didn't come up on system boot. > > > >rc.conf said: > > > >ifconfig_dc0="inet 209.46.51.22 netmask 255.255.255.240" > >ifconfig_dc0_alias0="inet 209.46.51.28 netmask 255.255.255.240" > > > >It's alias0 that isn't working. Tried to add it from the command line and >got: > > > >[root@magpie ~]# ifconfig dc0 209.46.51.28 netmask 255.255.255.240 alias > >ifconfig: ioctl (SIOCAIFADDR): File exists > >[root@magpie ~]# > > > >Getting rid of the netmask spec lets the alias be added: > > > >[root@magpie ~]# ifconfig dc0 209.46.51.28 alias > >[root@magpie ~]# > > > >And removing the netmask spec in rc.conf makes it work at next boot time. > > > >Ideas on why I can't have a /28 alias? > > >By now you should be aware this subject is answered many times. On "28", >your netmask should be 255.255.255.255 (better yet, 0xffffffff) not the >"240". Try that and your troubles should go away. > >In rc.conf >ifconfig_dc0="inet 209.46.51.22 netmask 255.255.255.240" >ifconfig_dc0_alias0="inet 209.46.51.28 netmask 255.255.255.255" >... or: >ifconfig_dc0_alias0="inet 209.46.51.28 netmask 0xffffffff" > >Best regards, >Jack L. Stone, >Administrator > >SageOne Net >http://www.sage-one.net >jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message