[erlang-questions] Two network interfaces.

Jon Watte jwatte@REDACTED
Fri Sep 16 20:48:26 CEST 2011


One alternative is to do interface selection using a static route.

Sincerely,

jw


--
Americans might object: there is no way we would sacrifice our living
standards for the benefit of people in the rest of the world. Nevertheless,
whether we get there willingly or not, we shall soon have lower consumption
rates, because our present rates are unsustainable.



On Tue, Sep 13, 2011 at 6:25 AM, Krzysztof Blachowski <
kblachowski@REDACTED> wrote:

> Hi all.
>
> Let's imagine that we have two machines A and B with erlang VM.
>
> On each erlang machine there is application which uses mnesia database. The
> database is replicated between nodes.
> Each node has two interfaces "I1" which is extremely fast and "I2" which is
> slow. There is also a bunch of erlang nodes which are clients
> for A and B nodes and they are using native erlang interface.
>
> I was trying to configure erlang nodes A and B to utilize this two
> interfaces but without any effect.
> How to connect nodes A i B with fast link (for mnesia replication) and at
> this same time connect them with slow link with external clients?
>
> I've tried:
>
>
> machine A:
>
> erl -name master -setcookie secret
>
> inet:getif():
> {ok,[{{192,168,1,10},{192,168,255,255},{255,255,0,0}},
>     {{10,132,24,10},{10,132,25,255},{255,255,254,0}},
>     {{127,0,0,1},{0,0,0,0},{255,0,0,0}}]}
>
> machine B:
>
> erl -name replica -setcookie secret
>
> net_adm:ping('master@REDACTED'):
> pong
>
> net_adm:ping('master@REDACTED'):
> pang
>
> Why? What I'm doing wrong?
>
> best regards
>
> ----------------------------------------------------------------
> Skoda Octavia z 2009 roku juz za 11 tys. zl
> http://linkint.pl/f2a36
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110916/a1b6571c/attachment.htm>


More information about the erlang-questions mailing list