Bug 752 - setting multiple addresses for a single interfaces loses
Summary: setting multiple addresses for a single interfaces loses
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Garrett Wollman
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1995-09-28 12:40 UTC by curt
Modified: 1996-12-17 16:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description curt 1995-09-28 12:40:00 UTC
	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.

Fix: 

no idea. rip out the multicast stuff and roll back to 1.1.5.1? nah.
How-To-Repeat: 
	ifconfig ed0 140.174.2.174 netmask 255.255.255.0 alias
	ping 140.174.2.174
Comment 1 wollman 1995-09-28 15:35:33 UTC
<<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
Comment 2 scrappy freebsd_committer freebsd_triage 1996-05-27 07:08:55 UTC
Responsible Changed
From-To: freebsd-bugs->wollman

used him for bin/658... 
Comment 3 Garrett Wollman freebsd_committer freebsd_triage 1996-12-17 16:05:22 UTC
State Changed
From-To: open->closed

Pilot error.