[avahi] Running avahi

Lennart Poettering mzzhgg at 0pointer.de
Sat Jul 2 13:48:12 PDT 2005


On Sat, 02.07.05 14:36, Steev (steev at steev.net) wrote:

> > avahi still doesn't subscribe to any the multicast group on any
> > interface. Everytime avahi finds a new "relevant" interface it prints
> > a line like "New relevant interface dummy0.2 (#4)" to syslog (or
> > STDERR).
> > 
> > Interfaces are considered relavant iff:
> > 
> >  - the interface has the flag  UP set
> >  - AND it has the flag MULTICAST set
> >  - AND it has the flag LOOPBACK *not* set
> >  - AND it has the flag POINTOPOINT *not* set
> >  - AND it has at least one address assigned with scope "global".
> > 
> > It seems as if avahi ignores the eth0 interface on your machine. To
> > check why, please post the output of "ifconfig eth0". It should look
> > like this:
> 
> eth0      Link encap:Ethernet  HWaddr 00:40:D0:33:FD:E1
>           inet6 addr: fe80::240:d0ff:fe33:fde1/64 Scope:Link
>           UP BROADCAST MULTICAST  MTU:1500  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:1000
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
>           Interrupt:11 Base address:0x4000

You haven't assigned an address with "global scope" to this
interface. The only address you assigned (or which was assigned
automatically by the IPv6 stack) is one with "link scope". 

Therefore avahi couldn't find any interface where to send the mDNS
traffic to or recieve mDNS traffic from. 

Running avahi on a host without any global IP address doesn't make
much sense, does it?

> > To check if avahi's netlink support works, please run "ifconfig dummy0
> > 1.1.1.1 multicast". Then avahi should print the line "Interface
> > dummy0.2 no longer relevant". After that run "ifconfig dummy0 down"
> > which should bring avahi to print "Interface dummy0.2 no longer
> > relevant".
> 
> It worked!  When I did the ifconfig dummy0 1.1.1.1 multicast
> avahi-discover popped up 2 entries under ssh (Remote Terminal on mebius)
> and 1 under workstation!

In the moment avahi finds at least one suitable network interface it
is able to exchange traffic with other mDNS stacks (including other
local).

> >>Jul  2 12:01:58 mebius avahi[10956]: iface.c: avahi_server_add_service()  failed.
> > 
> > 
> > You seem to have a very interesting network configuration, haven't
> > you? Something with empty MAC addresses or similar? Please post an
> > "ifconfig -a" output, too.
> 

[...]

> sit0      Link encap:IPv6-in-IPv4
>           NOARP  MTU:1480  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> 
> tunl0     Link encap:IPIP Tunnel  HWaddr
                                    ^^^^^^^^^^^^^ 
This MAC address is very interesting and probably the reason for the
problem. The problem isn't really important though. The fix is
probably just to disable the message.

>           NOARP  MTU:1480  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


Lennart

-- 
name { Lennart Poettering } loc { Hamburg - Germany }
mail { mzft (at) 0pointer (dot) de } gpg { 1A015CC4 }  
www { http://0pointer.de/lennart/ } icq# { 11060553 }


More information about the avahi mailing list