From owner-freebsd-stable Thu Jul 11 7:41:40 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 16CCB37B400 for ; Thu, 11 Jul 2002 07:41:36 -0700 (PDT) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 263DE43E54 for ; Thu, 11 Jul 2002 07:41:35 -0700 (PDT) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id g6BEfH573150; Thu, 11 Jul 2002 09:41:17 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020711094127.02e79b20@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Thu, 11 Jul 2002 09:41:27 -0500 To: Steve Peterson , stable@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: 4.6 & IP aliases / ifconfig In-Reply-To: <5.1.0.14.2.20020711085737.01e32ff0@magpie.zpfe.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" 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 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