[zeromq-dev] Zyre info request

Pieter Hintjens ph at imatix.com
Fri Dec 14 21:26:11 CET 2012

You can run many nodes on one computer (e.g. zre_tester), but you need
a network interface that supports broadcast; loopback doesn't do that.
Here's what ifconfig shows on my laptop:

eth0      Link encap:Ethernet  HWaddr e8:11:32:c4:01:13
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::ea11:32ff:fec4:113/64 Scope:Link
          RX packets:6360804 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3942846 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8152408546 (8.1 GB)  TX bytes:752858841 (752.8 MB)
          Interrupt:41 Base address:0xa000

lo        Link encap:Local Loopback
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:926866 errors:0 dropped:0 overruns:0 frame:0
          TX packets:926866 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2015220456 (2.0 GB)  TX bytes:2015220456 (2.0 GB)

But if I unplug the Ethernet cable then eth0 stops working. So I need
my eth0 up and connected in order to run multiple nodes on a single
machine. We could eventually use another discovery mechanism for loopback.


On Fri, Dec 14, 2012 at 8:24 PM, Claudio Carbone <erupter at libero.it> wrote:
> On 14/12/12 19:56, Pieter Hintjens wrote:
>> It is actually documented from the inside out, starting in Chapter 8
>> of the Guide.
> Thanks, that's some nice reading.
>> If you just want to use it, rather less easy right now. We'll start
>> putting together some basic docs soon. Start by getting zre_ping to
>> run and connect to other nodes. Your network interface must support
>> UDP broadcasts, so no loopback. At the least, an Ethernet connection,
>> or WiFi.
> I'll see what I can do.
> When I first tried I didn't get the requirement for 2 computers, but
> it's obvious when you think of it: no multicast on loopback.
> Thank you
> Claudio
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list