[avahi] Alias interfaces

Oliver Mangold ybyt4t at gmail.com
Mon Jan 21 10:11:07 PST 2013


I'm relatively new to Avahi and have a problem, I cannot fix. Maybe 
someone can help me along.

I have a machine using 2 different IP addresses on the same network 
interface (eth0), a static one and one LL assigned by avahi-autoipd:

 > ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 192.168.50.103  netmask 255.255.255.0  broadcast 
192.168.50.255
         inet6 fe80::20b:e0ff:fef0:ed  prefixlen 64  scopeid 0x20<link>
         ether 00:0b:e0:f0:00:ed  txqueuelen 1000  (Ethernet)
         RX packets 364526  bytes 50473403 (48.1 MiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 13225  bytes 1603095 (1.5 MiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth0:avahi: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
         inet 169.254.10.61  netmask 255.255.0.0  broadcast 169.254.255.255
         ether 00:0b:e0:f0:00:ed  txqueuelen 1000  (Ethernet)

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436
         inet 127.0.0.1  netmask 255.0.0.0
         inet6 ::1  prefixlen 128  scopeid 0x10<host>
         loop  txqueuelen 0  (Local Loopback)
         RX packets 24  bytes 2320 (2.2 KiB)
         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 24  bytes 2320 (2.2 KiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Apparently Avahi only uses the first one for discovery . With 
avahi-browse I only find hosts accessible via the static address. But if 
I remove the IP for eth0 and keep the one for eth0:avahi, discovery in 
the LL network works.

I wonder if, Avahi does this on purpose? Is there a way to make Avahi do 
discovery on both addresses?



More information about the avahi mailing list