Lennart Poettering schrieb: > On Wed, 17.06.09 18:07, Florian Erfurth ([email protected]) wrote: > > >>>> Simple question: What should I do, so that Avahi sends IP of br0 >>>> (192.168.7.120)? >>>> >>> The source address for UDP packets is chosen automatically by the >>> kernel as part of the routing table logic. >>> >> One question about that: Is such UDP packet sent only one time? Or twice >> if a device contains 2 addresses (eth1/br AND eth1:avah)? >> > There's no such thing as "eth1:avah". That's just a compat kludge for > legacy tools like ifconfig. As mentioned, use "ip addr" insetad of > ifconfig and it will show as a normal labeled address assigned to that > interface. > Ok: > 1: lo: <LOOPBACK,UP,10000> mtu 16436 qdisc noqueue > link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > inet 127.0.0.1/8 scope host lo > inet6 ::1/128 scope host > valid_lft forever preferred_lft forever > 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 > link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff > inet 169.254.9.176/16 brd 169.254.255.255 scope link eth0:avahi > 3: eth1: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc pfifo_fast qlen 1000 > link/ether yy:yy:yy:yy:yy:yy brd ff:ff:ff:ff:ff:ff > inet 169.254.9.181/16 brd 169.254.255.255 scope link eth1:avahi > inet6 fe80::2e0:f4ff:fe17:b1c7/64 scope link > valid_lft forever preferred_lft forever > 4: eth2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000 > link/ether zz:zz:zz:zz:zz:zz brd ff:ff:ff:ff:ff:ff > inet 169.254.9.186/16 brd 169.254.255.255 scope link eth2:avahi > 5: wifi0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 199 > link/ieee802.11 aa:aa:aa:aa:aa:aa brd ff:ff:ff:ff:ff:ff > 6: ath0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop > link/ether bb:bb:bb:bb:bb:bb brd ff:ff:ff:ff:ff:ff > 7: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 8300 qdisc pfifo_fast qlen 500 > link/[65534] > inet 192.168.99.130/30 scope global tun0 > 8: br0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue > link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff > inet 192.168.7.120/24 brd 192.168.7.255 scope global br0 > inet6 fe80::2e0:f4ff:fe17:b1c6/64 scope link > valid_lft forever preferred_lft forever
So avahi (often) sent IP from eth1 instead of br0. Again, is the IP-Address of br0 not sent if avahi takes IP from eth1? > Avahi distuingishes interfaces by their ifindex, not by their addresses. > Not sure what ifindex is, you mean such one like eth0, eth1 etc.? cu Floh _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
