Debian Bug report logs - #307480
zeroconf: Please make zeroconf IP address secondary

Package: linux-2.6; Maintainer for linux-2.6 is Debian Kernel Team <debian-kernel@lists.debian.org>;

Reported by: marcus@better.se

Date: Tue, 3 May 2005 13:18:02 UTC

Severity: normal

Done: maximilian attems <maks@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Marcus Better <marcus@better.se>, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to marcus@better.se:
New Bug report received and forwarded. Copy sent to Marcus Better <marcus@better.se>, Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: marcus@better.se
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: zeroconf: Please make zeroconf IP address secondary
Date: Tue, 3 May 2005 15:05:41 +0200
Package: zeroconf
Version: 0.3-1
Severity: wishlist

It would be useful if the link-local address was added in such a way
that the original address is still the "primary" address which shows
up in "ifconfig". This is usually more interesting than the link-local
address.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-kelev
Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)

Versions of packages zeroconf depends on:
ii  ifupdown                    0.6.4-4.12   high level tools to configure netw
ii  iproute                     20041019-3   Professional tools to control the 
ii  libc6                       2.3.2.ds1-21 GNU C Library: Shared libraries an

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Anand Kumria <wildfire@progsoc.uts.edu.au>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #10 received at 307480@bugs.debian.org (full text, mbox):

From: Anand Kumria <wildfire@progsoc.uts.edu.au>
To: marcus@better.se, 307480@bugs.debian.org
Subject: Re: Bug#307480: zeroconf: Please make zeroconf IP address secondary
Date: Wed, 3 Aug 2005 23:27:40 +1000
Hi Marcus,

On Tue, May 03, 2005 at 03:05:41PM +0200, marcus@better.se wrote:
> Package: zeroconf
> Version: 0.3-1
> Severity: wishlist
> 
> It would be useful if the link-local address was added in such a way
> that the original address is still the "primary" address which shows
> up in "ifconfig". This is usually more interesting than the link-local
> address.

Can you suggest a method to do this? I know of none.  

I am using the 'ip addr add' mechanism to add the additional address, in
the future I will directly use a netlink socket.

This will cause the same behavious to occur.  The kernel is aware of the
'primary' address and chains any other address onto the interface. In
fact from linux 2.6.12 onwards, it will automagically remove all
secondary addresses.

I believe this to be a bug with the 'ifconfig' tool - I recommend that 
instead you you 'ip addr' which is in the iproute package.  You may wish
to re-assign this bug to the ifconfig program.

Thanks,
Anand

-- 
 `When any government, or any church for that matter, undertakes to say to
  its subjects, "This you may not read, this you must not see, this you are
  forbidden to know," the end result is tyranny and oppression no matter how
  holy the motives' -- Robert A Heinlein, "If this goes on --"



Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Georg Wittenburg <georg.wittenburg@gmx.net>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #15 received at 307480@bugs.debian.org (full text, mbox):

From: Georg Wittenburg <georg.wittenburg@gmx.net>
To: 307480@bugs.debian.org
Subject: Suggestion
Date: Fri, 19 Aug 2005 02:45:50 +0200
[Message part 1 (text/plain, inline)]
Hi Anand!

Has there been any progress on this issue? In some situations it's getting 
slightly annoying not to known the real IP of your machine...

Have you considered using IP aliasing to do the trick? As far as I know, 
that's the standard way to run one NIC with multiple IPs. One of many HOWTOs 
is at http://www.faqs.org/docs/Linux-mini/IP-Alias.html.

Regards,
   Georg

-- 
Georg Wittenburg
http://page.mi.fu-berlin.de/~wittenbu/
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Anand Kumria <wildfire@progsoc.uts.edu.au>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #20 received at 307480@bugs.debian.org (full text, mbox):

From: Anand Kumria <wildfire@progsoc.uts.edu.au>
To: Georg Wittenburg <georg.wittenburg@gmx.net>, 307480@bugs.debian.org
Subject: Re: Bug#307480: Suggestion
Date: Sun, 21 Aug 2005 11:07:18 +1000
[Message part 1 (text/plain, inline)]
Hi Georg,

On Fri, Aug 19, 2005 at 02:45:50AM +0200, Georg Wittenburg wrote:
> Hi Anand!
> 
> Has there been any progress on this issue? In some situations it's getting 
> slightly annoying not to known the real IP of your machine...

As I explained in my earlier response - this is not the fault of
zeroconf but of the particular tool you are using. The 'ip' tool from
the iproute package has no issue displaying the correct address.

> Have you considered using IP aliasing to do the trick? As far as I know, 
> that's the standard way to run one NIC with multiple IPs. One of many HOWTOs 
> is at http://www.faqs.org/docs/Linux-mini/IP-Alias.html.

IP aliasing does not add a secondary address; it creates an additional
(virtual) device and then adds an address to it.

The correct way to add a secondary address is via netlink; currently I
use the 'ip' tools to do this but in the future zeroconf will do this
directly.

Thanks,
Anand

-- 
 `When any government, or any church for that matter, undertakes to say to
  its subjects, "This you may not read, this you must not see, this you are
  forbidden to know," the end result is tyranny and oppression no matter how
  holy the motives' -- Robert A Heinlein, "If this goes on --"
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Georg Wittenburg <georg.wittenburg@gmx.net>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #25 received at 307480@bugs.debian.org (full text, mbox):

From: Georg Wittenburg <georg.wittenburg@gmx.net>
To: 307480@bugs.debian.org
Subject: Re: Bug#307480: Suggestion
Date: Sun, 21 Aug 2005 17:52:34 +0200
[Message part 1 (text/plain, inline)]
Hi Anand!

On Sunday 21 August 2005 03:07, you wrote:
> Hi Georg,
>
> On Fri, Aug 19, 2005 at 02:45:50AM +0200, Georg Wittenburg wrote:
> > Hi Anand!
> >
> > Has there been any progress on this issue? In some situations it's
> > getting slightly annoying not to known the real IP of your machine...
>
> As I explained in my earlier response - this is not the fault of
> zeroconf but of the particular tool you are using. The 'ip' tool from
> the iproute package has no issue displaying the correct address.

I've filed bug report #324306 against the net-tools package, and the 
maintainer replied stating that he'll eventually migrate to netdev.

Personally, I'm however a bit skeptical whether this will solve this issue: 
Far too many tools (such as the systray icon that displays some net stats in 
my case) wrongly rely on the exact formatting of the output of ifconfig. Yes, 
this isn't the way things should be done, but filing a zillion bug reports 
would take ages, apart from some GUI people complaining that their neat 
layouts are broken by the fact that they need to provide space for a variable 
number of IPs per interface. :(

So how about this (hackish) solution: Assuming (and correct me if I'm wrong) 
that the last IP that was added to an interface is always the one displayed 
by ifconfig. Then it should be feasible to handle the standard zeroconf case 
by saving the IP of an interface, removing that IP, adding the LL zeroconf 
IP, and then re-adding the original IP. This should result in the "main" IP 
to be shown in ifconfig and GUI tools without much tweaking.

Too ugly or something that I should send you a patch for?


> > Have you considered using IP aliasing to do the trick? As far as I know,
> > that's the standard way to run one NIC with multiple IPs. One of many
> > HOWTOs is at http://www.faqs.org/docs/Linux-mini/IP-Alias.html.
>
> IP aliasing does not add a secondary address; it creates an additional
> (virtual) device and then adds an address to it.
>
> The correct way to add a secondary address is via netlink; currently I
> use the 'ip' tools to do this but in the future zeroconf will do this
> directly.

Thanks!
   Georg

-- 
Georg Wittenburg
http://page.mi.fu-berlin.de/~wittenbu/
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Faidon Liambotis <faidon@cube.gr>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #30 received at 307480@bugs.debian.org (full text, mbox):

From: Faidon Liambotis <faidon@cube.gr>
To: 307480@bugs.debian.org
Subject: Re: zeroconf: Please make zeroconf IP address secondary
Date: Sat, 27 Aug 2005 17:08:16 +0300
Hi,
Can you try adding "scope link" to ip address add? Also, it might be
worth it to try "label eth0:1" (for example), so one can ifconfig the
(virtual) device.

Note that I'm not a user of zeroconf - in fact I'm not familiar _at all_
with it. Just trying to help.

Regards,
Faidon




Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to Georg Wittenburg <georg.wittenburg@gmx.net>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #35 received at 307480@bugs.debian.org (full text, mbox):

From: Georg Wittenburg <georg.wittenburg@gmx.net>
To: 307480@bugs.debian.org
Subject: Interoperability Problem with Samba
Date: Sat, 27 Aug 2005 22:48:44 +0200
[Message part 1 (text/plain, inline)]
Hi again!

It seems to me that the current implementation of assigning IP numbers breaks 
Samba network browsing.

All other things being equal, I observe the following behavior: If an zeroconf 
IP is assigned additionally to the real IP, then smbtree only shows my own 
computer. If I don't assign a zeroconf IP (by saying FALLBACK=yes 
in /etc/default/zeroconf), then smbtree shows all computers on my LAN.

I assume that this is caused by my box becoming the local master browser of 
the subnet belonging to the zeroconf IP, thus effectively splitting the Samba 
workgroup over two subnets. See section 1.4.3 of 
http://www.oreilly.com/catalog/samba/chapter/book/ch01_04.html for details.

Since the current implementation of zeroconf breaks unrelated software, I 
think this qualifies as a bug rather than a wishlist item.

So please, when assigning the zeroconf IP leave the primary IP intact. While 
I'm not certain about this, having the primary IP show up in the output of 
the current implementation of ifconfig might be a good indication.

Regards,
   Georg

-- 
Georg Wittenburg
http://page.mi.fu-berlin.de/~wittenbu/
[Message part 2 (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Anand Kumria <wildfire@progsoc.org>:
Bug#307480; Package zeroconf. Full text and rfc822 format available.

Acknowledgement sent to "Mike Wilson" <mikewse@hotmail.com>:
Extra info received and forwarded to list. Copy sent to Anand Kumria <wildfire@progsoc.org>. Full text and rfc822 format available.

Message #40 received at 307480@bugs.debian.org (full text, mbox):

From: "Mike Wilson" <mikewse@hotmail.com>
To: <307480@bugs.debian.org>
Subject: more on samba problems
Date: Mon, 20 Mar 2006 15:31:29 +0100
Hi Georg,

I agree with many things you are saying here, f ex trying to force the real
ip address to the top of the list.

FYI:

> It seems to me that the current implementation of 
> assigning IP numbers breaks Samba network browsing.

I also got problems with Samba when zeroconf was silently installed on my
system. Looking at the logs I can see Samba starting up on both ip
addresses, but using the subnetmask (255.255.0.0) from the zeroconf ip on
both addresses.
See my post in http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351540

Cheers
Mike



Severity set to `normal'. Request was from Anand Kumria <wildfire@progsoc.uts.edu.au> to control@bugs.debian.org. Full text and rfc822 format available.

Message sent on to marcus@better.se:
Bug#307480. Full text and rfc822 format available.

Message #45 received at 307480-submitter@bugs.debian.org (full text, mbox):

From: Anand Kumria <wildfire@progsoc.uts.edu.au>
To: 307480-submitter@bugs.debian.org
Cc: control@bugs.debian.org
Subject: kernel/ifconfig issues
Date: Sun, 30 Apr 2006 20:00:47 +1000
severity 307480 normal
reassign linux-2.6
thanks,

Hi Marcus,

I looked into this briefly -- I rewrote zeroconf along the way too --
and basically there isn't any way for me to make addresses added to an
interface appear in a certain order.

For ifconfig a bug is filled as 359676, so I am reassigning this one to
the kernel on your behalf.

ifconfig only reports the first address it receives from the kernel
(which is the bug noted above). The kernel returns link-local scoped
addresses first (for some reason).

The kernel people are really big on 'not breaking userspace' so as a
compatibility aid it would be better to return the first non-link scope
address.

However I'll leave what action (if any) to take to the maintainers.

Regards,
Anand

-- 
 `When any government, or any church for that matter, undertakes to say to
  its subjects, "This you may not read, this you must not see, this you are
  forbidden to know," the end result is tyranny and oppression no matter how
  holy the motives' -- Robert A Heinlein, "If this goes on --"



Bug reassigned from package `zeroconf' to `linux-2.6'. Request was from Anand Kumria <wildfire@progsoc.uts.edu.au> to control@bugs.debian.org. Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#307480; Package linux-2.6. Full text and rfc822 format available.

Acknowledgement sent to maximilian attems <maks@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. Full text and rfc822 format available.

Message #52 received at 307480@bugs.debian.org (full text, mbox):

From: maximilian attems <maks@debian.org>
To: control@bugs.debian.org
Cc: 307480@bugs.debian.org
Subject: closing 307480
Date: Thu, 09 Aug 2007 18:13:29 +0200
# Automatically generated email from bts, devscripts version 2.10.6
# use ip not ipconfig
close 307480 




Bug closed, send any further explanations to marcus@better.se Request was from maximilian attems <maks@debian.org> to control@bugs.debian.org. (Thu, 09 Aug 2007 16:18:04 GMT) Full text and rfc822 format available.

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 07 Sep 2007 07:30:55 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 12:43:42 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.