Lennart Poettering schrieb: > On Thu, 28.05.09 13:21, Florian Erfurth ([email protected]) wrote: > > >> Ok, this means the host always(?) get 169.254.7.XXX-Address before >> getting IP from /etc/network/interfaces, right? Thank you for your tip, >> but I cannot use "ip addr" on client if I want to know the IP of the >> host. >> > > Uh? Not sure I understand what you mean. > > Avahi only announces one address per host name and interface. It tries > to be smart and picks the routable address over the IPv4LL address if > both are configured on the same interface. > I found out, and maybe this is the cause of my problem. Below you can see the output of 'ifconfig'. br0 is the bridge, which bridges between eth0 and eth1. The Client is connected to eth1. It seems Avahi on server sends IP-address from eth1-avah (169.254.9.181) instead of br0 (192.168.7.120) which is wrong. :( By the way, why is there no br0-avah? Is this normal?
Simple question: What should I do, so that Avahi sends IP of br0 (192.168.7.120)? cu Floh > br0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX > inet addr:192.168.7.120 Bcast:192.168.7.255 Mask:255.255.255.0 > inet6 addr: fe80::2e0:f4ff:fe17:b1c6/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:2544939 errors:0 dropped:0 overruns:0 frame:0 > TX packets:98965 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:2079136680 (1.9 GB) TX bytes:87863835 (83.7 MB) > > eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX > inet6 addr: fe80::2e0:f4ff:fe17:b1c6/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:968050 errors:0 dropped:0 overruns:0 frame:0 > TX packets:455901 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:803170840 (765.9 MB) TX bytes:368065407 (351.0 MB) > Interrupt:16 Base address:0xa000 > > eth1 Link encap:Ethernet HWaddr YY:YY:YY:YY:YY:YY > inet6 addr: fe80::2e0:f4ff:fe17:b1c7/64 Scope:Link > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > RX packets:33171275 errors:0 dropped:0 overruns:0 frame:0 > TX packets:1117297 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:1000 > RX bytes:1295982097 (1.2 GB) TX bytes:867620730 (827.4 MB) > Interrupt:17 Base address:0xc000 > > eth2 Link encap:Ethernet HWaddr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ > 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:18 Base address:0xe000 > > eth0:avah Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX > inet addr:169.254.9.176 Bcast:169.254.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > Interrupt:16 Base address:0xa000 > > eth1:avah Link encap:Ethernet HWaddr YY:YY:YY:YY:YY:YY > inet addr:169.254.9.181 Bcast:169.254.255.255 Mask:255.255.0.0 > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 > Interrupt:17 Base address:0xc000 > > eth2:avah Link encap:Ethernet HWaddr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ > inet addr:169.254.9.186 Bcast:169.254.255.255 Mask:255.255.0.0 > UP BROADCAST MULTICAST MTU:1500 Metric:1 > Interrupt:18 Base address:0xe000 > > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > inet6 addr: ::1/128 Scope:Host > UP LOOPBACK RUNNING MTU:16436 Metric:1 > RX packets:7644 errors:0 dropped:0 overruns:0 frame:0 > TX packets:7644 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:0 > RX bytes:551509 (538.5 KB) TX bytes:551509 (538.5 KB) > > tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 > inet addr:192.168.99.130 P-t-P:192.168.99.130 Mask:255.255.255.252 > UP POINTOPOINT RUNNING NOARP MULTICAST MTU:8300 Metric:1 > RX packets:1052 errors:0 dropped:0 overruns:0 frame:0 > TX packets:1063 errors:0 dropped:0 overruns:0 carrier:0 > collisions:0 txqueuelen:500 > RX bytes:33687 (32.8 KB) TX bytes:573338 (559.9 KB) _______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
