[erlang-questions] Two network interfaces.

Krzysztof Blachowski <>
Tue Sep 13 15:25:42 CEST 2011


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(''): 
pong

net_adm:ping(''):
pang

Why? What I'm doing wrong?

best regards

----------------------------------------------------------------
Skoda Octavia z 2009 roku juz za 11 tys. zl
http://linkint.pl/f2a36



More information about the erlang-questions mailing list