← Back to team overview

desktop-packages team mailing list archive

[Bug 1083565] Re: avahi malfunctions on a machine connected to the network via multiple interfaces

 

Some one could test if adding noapic or noacpi to the kernel line work
and the net card work fine? as well could some one test installing wicd
and uninstall network-manager to see if this work?

For me adding noacpi or noapic work for the net card but after one hour
more or less the system freezes, disconecting the keyboard and mouse so
I must restart the PC and with wicd I can make this work for me, wicd
does not detect the net card or may be I do not know how to configure
it.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1083565

Title:
  avahi malfunctions on a machine connected to the network via multiple
  interfaces

Status in “avahi” package in Ubuntu:
  Confirmed
Status in “network-manager” package in Ubuntu:
  Confirmed

Bug description:
  I have a router making up one local NAT network connected to the
  internet. The router allows to connect both wired and wireless. My
  laptops are configured to use both wired and wireless. So I can walk
  around with them and also connect to the quicker wired network if they
  are on the desk.

  Problem is that when the laptops are on my desk and I plug in the
  network cables they stay connected on wireless and so they get
  connected twice, wired and wireless, with two IP addresses, appearing
  as two computers for the router and all other computers in the
  network. Most things still simply work, like accessing the internet
  from the laptops, SSHing to another computer, ... what causes problems
  is Bonjour/mDNS. Avahi broadcasts available services (I have shared
  CUPS printers on the laptops) into the network, using the host name of
  the machine assigned on installation, for example "till-lenovo". As
  the broadcasts go through two interfaces there is a service name
  conflict and it seems that Avahi tries to overcome it by using host
  names like "till-lenovo-1", "till-lenovo-2", ... When the laptop keeps
  running one sees in the "avahi-discover" output on another machine the
  entries from the laptop, but with host names (and so the service
  names) changing from time to time. This leads to a client with a print
  queue pointing to a printer shared by the laptop via the printer's
  Bonjour service name cannot print any more.

  I have done a short test and Avahi stops adding numbers to the
  original host name when turning off wireless on the laptop so that it
  connects only through the wired network.

  One way of fixing (or working around?) the problem would be a change
  in network-manager to automatically turn off wireless if the computer
  is connected to a wired network and switching wireless back on when
  the network cable gets disconnected. This would probably also solve
  problems with other server functionality.

  Another solution would be a change in Avahi, somehow recognizing that
  the broadcasts through the two interfaces come from the same computer
  and so they can (and should) have the same service names, or
  recognizing that the two interfaces go into the same network and
  therefore broadcast only through one of them, stopping the
  broadcasting through the weaker one (the wireless in our case).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1083565/+subscriptions