From owner-freebsd-net Fri May 3 6:39:20 2002 Delivered-To: freebsd-net@freebsd.org Received: from tesla.foo.is (tesla.reverse-bias.org [217.151.166.96]) by hub.freebsd.org (Postfix) with ESMTP id 020D637B421; Fri, 3 May 2002 06:39:03 -0700 (PDT) Received: from there (eniac.foo.is [192.168.1.25]) by tesla.foo.is (Postfix) with SMTP id 9D6DD2744; Fri, 3 May 2002 13:38:56 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Baldur Gislason To: Dan Protich Subject: Re: misc/37696: Virtual hosts broken Date: Fri, 3 May 2002 13:37:39 +0000 X-Mailer: KMail [version 1.3.2] References: <200205030539.g435dsbm090704@nwww.freebsd.org> In-Reply-To: <200205030539.g435dsbm090704@nwww.freebsd.org> Cc: freebsd-gnats-submit@freebsd.org, freebsd-net@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020503133856.9D6DD2744@tesla.foo.is> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Problem exists between keyboard and chair. The reason why ifconfig complains is that you're assigning a point-to-point address to an ethernet interface and both addresses have the same point-to-point address. This is how you add ips to an interface: ifconfig xl0 192.168.1.1 netmask 255.255.255.0 # this is the primary ifconfig xl0 add 192.168.1.254 netmask 255.255.255.255 # All extra addresses within the same subnet MUST have netmask 0xffffffff or 255.255.255.255 to prevent routing problems. Baldur On Friday 03 May 2002 05:39, you wrote: > >Number: 37696 > >Category: misc > >Synopsis: Virtual hosts broken > >Confidential: no > >Severity: serious > >Priority: high > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Thu May 02 22:40:01 PDT 2002 > >Closed-Date: > >Last-Modified: > >Originator: Dan Protich > >Release: 4.6-PRERELEASE > >Organization: > > Shell-box Computers Inc. > > >Environment: > > bash-2.05a$ uname -a > FreeBSD sinister.shell-box.com 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #0: > Sat Mar 2 02:32:42 EST 2002 > root@sinister.shell-box.com:/usr/obj/usr/src/sys/GENERIC i386 bash-2.05a$ > > >Description: > > Thought that i would upgrade freebsd box and main dns server was on it only > accepted 1 virtual host and not a 2nd and wouldnt allow manual add of vhost > rc.conf network information wouldn't accept did a upgrade from 4.5-release > also kernel upgrade. > > >How-To-Repeat: > > sinister# ifconfig vr0 66.118.153.201 66.118.153.255 alias > sinister# ifconfig vr0 66.118.153.254 66.118.153.255 alias > ifconfig: ioctl (SIOCAIFADDR): File exists > sinister# > doesn't exist? > sinister# ifconfig > vr0: flags=8843 mtu 1500 > inet 66.118.153.66 netmask 0xffffff00 broadcast 66.118.153.255 > inet6 fe80::207:95ff:fea8:153b%vr0 prefixlen 64 scopeid 0x1 > inet 66.118.153.201 netmask 0xff000000 broadcast 66.118.153.255 > ether 00:07:95:a8:15:3b > media: Ethernet autoselect (100baseTX ) > status: active > lp0: flags=8810 mtu 1500 > sl0: flags=c010 mtu 552 > faith0: flags=8002 mtu 1500 > lo0: flags=8049 mtu 16384 > inet6 ::1 prefixlen 128 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 > inet 127.0.0.1 netmask 0xff000000 > ppp0: flags=8010 mtu 1500 > sinister# > > >Fix: > > > >Release-Note: > >Audit-Trail: > >Unformatted: > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-bugs" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message