From curt@emergent.com  Thu Sep 28 04:35:35 1995
Received: from bluewhale.emergent.com (bluewhale.emergent.com [140.174.2.161])
          by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id EAA11686
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 28 Sep 1995 04:35:35 -0700
Received: (from root@localhost) by bluewhale.emergent.com (8.6.11/8.6.12) id EAA07386; Thu, 28 Sep 1995 04:35:30 -0700
Message-Id: <199509281135.EAA07386@bluewhale.emergent.com>
Date: Thu, 28 Sep 1995 04:35:30 -0700
From: curt@emergent.com
Reply-To: curt@emergent.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ifconfig alias busted deep in networking code
X-Send-Pr-Version: 3.2

>Number:         752
>Category:       kern
>Synopsis:       setting multiple addresses for a single interfaces loses
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    wollman
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 28 04:40:00 PDT 1995
>Closed-Date:    Tue Dec 17 08:05:22 PST 1996
>Last-Modified:  Tue Dec 17 08:06:15 PST 1996
>Originator:     Curt Mayer
>Release:        FreeBSD 2.1 STABLE i386
>Organization:
>Environment:

	2.1 STABLE, 486dx2-66, 2 ed interfaces

>Description:

	on 1.1.5.1, when doing an
		ifconfig ed0 140.174.2.174 netmask 255.255.255.0 alias
	it works.
	on 2.1 STABLE, it is broken in 2 ways: ifconfig complains, and it
		does not work, even though netstat likes it.
	note that sometimes I have seen it work for interfaces other than
	the first one, and even for the first one, for a very short time.

>How-To-Repeat:

	ifconfig ed0 140.174.2.174 netmask 255.255.255.0 alias
	ping 140.174.2.174

	
>Fix:
	
	no idea. rip out the multicast stuff and roll back to 1.1.5.1? nah.

>Release-Note:
>Audit-Trail:

From: "Garrett A. Wollman" <wollman@lcs.mit.edu>
To: curt@emergent.com
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: kern/752: ifconfig alias busted deep in networking code
Date: Thu, 28 Sep 1995 10:35:33 -0400

 <<On Thu, 28 Sep 1995 04:35:30 -0700, curt@emergent.com said:
 
 > 	on 1.1.5.1, when doing an
 > 		ifconfig ed0 140.174.2.174 netmask 255.255.255.0 alias
 > 	it works.
 > 	on 2.1 STABLE, it is broken in 2 ways: ifconfig complains, 
 
 This is a pretty strong indication of what you're doing wrong.  It
 looks very much like what you're trying to do is the following:
 
 	ifconfig ed0 X.Y.Z.a netmask 255.255.255.0
 	ifconfig ed0 X.Y.Z.b netmask 255.255.255.0
 
 This is not a valid combination of interface addresses.  What you must
 do is:
 
 	ifconfig ed0 X.Y.Z.a netmask 255.255.255.0
 	ifconfig ed0 X.Y.Z.b netmask 255.255.255.255
 
 and then it will work.
 
 -GAWollman
 
 --
 Garrett A. Wollman   | Shashish is simple, it's discreet, it's brief. ... 
 wollman@lcs.mit.edu  | Shashish is the bonding of hearts in spite of distance.
 Opinions not those of| It is a bond more powerful than absence.  We like people
 MIT, LCS, ANA, or NSA| who like Shashish.  - Claude McKenzie + Florent Vollant
Responsible-Changed-From-To: freebsd-bugs->wollman 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Sun May 26 23:08:55 PDT 1996 
Responsible-Changed-Why:  
used him for bin/658... 
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Tue Dec 17 08:05:22 PST 1996 
State-Changed-Why:  
Pilot error. 
>Unformatted:
