From nobody@nwww.freebsd.org  Thu May  2 22:38:47 2002
Return-Path: <nobody@nwww.freebsd.org>
Received: from nwww.freebsd.org (nwww.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 6411137B416
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  2 May 2002 22:38:47 -0700 (PDT)
Received: from nwww.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g435dshG090705
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 2 May 2002 22:39:54 -0700 (PDT)
	(envelope-from nobody@nwww.freebsd.org)
Received: (from nobody@localhost)
	by nwww.freebsd.org (8.12.2/8.12.2/Submit) id g435dsbm090704;
	Thu, 2 May 2002 22:39:54 -0700 (PDT)
Message-Id: <200205030539.g435dsbm090704@nwww.freebsd.org>
Date: Thu, 2 May 2002 22:39:54 -0700 (PDT)
From: Dan Protich <silveradmin@shell-box.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Virtual hosts broken 
X-Send-Pr-Version: www-1.0

>Number:         37696
>Category:       misc
>Synopsis:       Virtual hosts broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 02 22:40:01 PDT 2002
>Closed-Date:    Fri May 03 11:47:27 PDT 2002
>Last-Modified:  Tue May 14 19:50:01 PDT 2002
>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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128 
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
        inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sinister# 
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Gregory Bond <gnb@itga.com.au>
To: Dan Protich <silveradmin@shell-box.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37696: Virtual hosts broken 
Date: Fri, 03 May 2002 16:20:02 +1000

 >sinister# ifconfig vr0 66.118.153.254 66.118.153.255 alias  
 
 Read the ifconfig man page, under the "alias" subcommand:
 
 	If the address
         is on the same subnet as the first network address for this
         interface, a netmask of 0xffffffff has to be specified.
 
 This has recently become mandatory.  Yes, EEXISTS is an odd error to return 
 in this case.
 
 [BTW: check your configs carefully, your netmasks
         inet 66.118.153.66 netmask 0xffffff00 broadcast 66.118.153.255
         inet 66.118.153.201 netmask 0xff000000 broadcast 66.118.153.255
 are screwed.]
 
 This PR can be closed.
 
 

From: "Crist J. Clark" <cjc@FreeBSD.ORG>
To: Dan Protich <silveradmin@shell-box.com>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: misc/37696: Virtual hosts broken
Date: Thu, 2 May 2002 23:23:09 -0700

 On Thu, May 02, 2002 at 10:39:54PM -0700, Dan Protich wrote:
 [snip]
 
 >    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
 
 See ifconfig(8). You need to set the netmask on those aliases to
 255.255.255.255.
 -- 
 Crist J. Clark                     |     cjclark@alum.mit.edu
                                    |     cjclark@jhu.edu
 http://people.freebsd.org/~cjc/    |     cjc@freebsd.org

From: Baldur Gislason <baldur@foo.is>
To: Dan Protich <silveradmin@shell-box.com>
Cc: freebsd-gnats-submit@freebsd.org, freebsd-net@freebsd.org
Subject: Re: misc/37696: Virtual hosts broken
Date: Fri, 3 May 2002 13:37:39 +0000

 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
 >         status: active
 > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
 > sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
 > faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
 > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 >         inet6 ::1 prefixlen 128
 >         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
 >         inet 127.0.0.1 netmask 0xff000000
 > ppp0: flags=8010<POINTOPOINT,MULTICAST> 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
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Fri May 3 11:47:11 PDT 2002 
State-Changed-Why:  
man 8 ifconfig 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37696 

From: Brian Somers <brian@Awfulhak.org>
To: Baldur Gislason <baldur@foo.is>
Cc: Dan Protich <silveradmin@shell-box.com>,
	freebsd-gnats-submit@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject: Re: misc/37696: Virtual hosts broken 
Date: Wed, 15 May 2002 03:45:36 +0100

 > 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 
 
 You forgot ``alias''.
 
 > within the same subnet MUST have netmask 0xffffffff or 255.255.255.255 to 
 > prevent routing problems.
 
 No, they must have a non-conflicting IP/mask combination.  A netmask 
 of 0xffffffff will make it non-conflicting, and is usually what you 
 mean, but it's also possible to
 
 ifconfig xl0 192.168.1.1 netmask 255.255.255.0
 ifconfig xl0 add 192.168.1.254 netmask 255.255.255.128 alias
 
 which means that data sent to (say) 192.168.1.200 will go with a 
 source IP of 192.168.1.254, and not 192.168.1.1.
 
 > 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex>)
 > >         status: active
 > > lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
 > > sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
 > > faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
 > > lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 > >         inet6 ::1 prefixlen 128
 > >         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
 > >         inet 127.0.0.1 netmask 0xff000000
 > > ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
 > > sinister#
 > >
 > > >Fix:
 > > >
 > > >Release-Note:
 > > >Audit-Trail:
 > > >Unformatted:
 
 -- 
 Brian <brian@Awfulhak.org>                    <brian@freebsd-services.com>
       <http://www.Awfulhak.org>                   <brian@[uk.]FreeBSD.org>
 Don't _EVER_ lose your sense of humour !          <brian@[uk.]OpenBSD.org>
 
 
>Unformatted:
